Skip to content

Trim blank lines around verbatim text #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/octLexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ and verb = parse
{ raise (LexerError(curr_loc lexbuf, Nested_verbatim)) }
| verb end
{ use_start_loc lexbuf;
Verb (get_raw_buffered_string ()) }
Verb (get_buffered_string ()) }
| eof
{ raise (LexerError(get_start_loc (), Unterminated_verbatim)) }
| newline
Expand Down Expand Up @@ -525,7 +525,7 @@ and pre_code = parse
{ raise (LexerError(curr_loc lexbuf, Nested_pre_code)) }
| end_pre_code
{ use_start_loc lexbuf;
Pre_Code (get_raw_buffered_string ()) }
Pre_Code (get_buffered_string ()) }
| eof
{ raise (LexerError(get_start_loc (), Unterminated_pre_code)) }
| newline
Expand Down