Skip to content

Commit

Permalink
[CWEB] Fix spacing for |#include| in TeX comment.
Browse files Browse the repository at this point in the history
git-svn-id: svn://tug.org/texlive/trunk/Build/source@57871 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed Feb 24, 2021
1 parent 815e4fe commit ed7d141
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions texk/web2c/cwebdir/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2021-02-24 Andreas Scherer <https://ascherer.github.io>

* cweave.w: Fix spacing for |#include| in TeX comment.

2021-02-24 Andreas Scherer <https://ascherer.github.io>

* common.w,
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/cwebdir/cweave.w
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ a file name in lines that start with \.{\#include}. We must treat this file
name as a string.

@<Private...@>=
static boolean sharp_include_line=false; /* are we scanning a |#include| line? */
static boolean sharp_include_line=false; /* are we scanning a \&{\#include} line? */

@ @<Check if next token is |include|@>=
while (loc<=buffer_end-7 && xisspace(*loc)) loc++;
Expand Down Expand Up @@ -845,7 +845,7 @@ convention, but do not allow the string to be longer than |longest_name|.
if (delim=='u' && *loc=='8') { *++id_loc=*loc++; }
delim=*loc++; *++id_loc=delim;
}
if (delim=='<') delim='>'; /* for file names in |#include| lines */
if (delim=='<') delim='>'; /* for file names in \&{\#include} lines */
while (true) {
if (loc>=limit) {
if(*(limit-1)!='\\') {
Expand Down

0 comments on commit ed7d141

Please sign in to comment.