haghish / markdoc

A literate programming package for Stata which develops dynamic documents, slides, and help files in various formats
http://haghish.com/markdoc
88 stars 31 forks source link

r(132): Too Many Quotes #17

Closed chris-prener closed 6 years ago

chris-prener commented 7 years ago

Hi @haghish, Following up on your comment last night.

The original issue described an error that occurs involving the single backtick in Markdown used to identify, for example, a variable name or a file path:

# Open `auto.dta`
The variable `mpg` is the variable that everyone uses.

When I use those backticks in my do-files, I routinely get error r(132): Too Few Quotes. Your initial fix addressed a bug that was causing MarkDoc to crash when a backtick appeared at the end of the line.

However, the fix for the bug created an issue where MarkDoc placing \ characters at the end of lines and inserting line breaks into blocks of Markdown formatted text.

I really appreciate you continuing to look for a solution that will allow for backticks to be used throughout MarkDoc do-files!

cheers, @chris-prener

haghish commented 7 years ago

thanks. But basically you confirm that the bug is avoidable if the "`" is not the last character of a text line?

chris-prener commented 7 years ago

that does seem to be the case right now, yes.

haghish commented 6 years ago

I remember I had tried to fix this issue but I couldn't, for a particular bug I was getting in Stata 14. Haven't tried it with Stata 15... bug fix suggestions are welcomed

haghish commented 6 years ago

The bug is fixed now, thanks for the bug report.