Skip to content

Commit

Permalink
Merge pull request #45 from sgerwk/master
Browse files Browse the repository at this point in the history
newlines are like spaces in math inline mode
  • Loading branch information
pkubowicz authored Jun 26, 2018
2 parents b9c1a18 + 6461438 commit d9be319
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion detex.l
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ VERBSYMBOL =|\\leq|\\geq|\\in|>|<|\\subseteq|\subseteq|\\subset|\\supset|\\sim|\

<Normal>"$" /* math mode */ {BEGIN Math; NOUN;}
<Math>"$" BEGIN Normal;
<Math>"\n" NEWLINE;
<Math>"\n" ;
<Math>"\\$" ;
<Math>{VERBSYMBOL} VERBNOUN;
<Math>. ;
Expand Down
2 changes: 2 additions & 0 deletions test/correct.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Line ending with macro

should not eat an empty newline

An inline math equation like should not produce an empty line

Text to include.


Expand Down
4 changes: 4 additions & 0 deletions test/in.tex
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ \chapter*{First}

should not eat an empty newline

An inline math equation like $a +
b +
c$ should not produce an empty line

\input{part}
\newcounter{equation}

Expand Down

0 comments on commit d9be319

Please sign in to comment.