-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle
^^M
s inside formatted "lines"
When `listings`-`fancyverb` interface is switched on `\FancyVerbFormatLine` command set by `listings` can't handle carriage return (`^^M`) characters passed to it. Although it's intended to format individual lines, when `commandchars` are set, commands with arguments containing newlines are passed to `\FancyVerbFormatLine` as single "lines". This leads to infinite compilation. As a workaround all `^^M`s are replaced by `\empty`s before tokens are passed to formatting command.
- Loading branch information
Showing
1 changed file
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters