haghish / markdoc

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

markdoc inserts space in longer lines #14

Closed benzipperer closed 7 years ago

benzipperer commented 7 years ago

Try the following code

capture log close
qui log using test, replace
/***
This is a really long line that gets modified after running markdoc on the log file, at column 90.
***/
qui log close
markdoc test, export(md) replace

Then test.md will look like

This is a really long line that gets modified after running markdoc on
the log file, at c olumn 90.
haghish commented 7 years ago

sadly, it doesn't produce your error. Stata 14.2, markdoc 3.9.5, windows 7.

In older versions, you had to specify the "linesize" option to avoid a space between your text. But now MarkDoc takes care of line size automatically, unless your linesize is more than 255, which is the limit of Stata

benzipperer commented 7 years ago

Thanks! You're right, I was using an older version. I installed 3.9.5 using your github stata module and the error disappeared.

Thanks again for the great packages!

haghish commented 7 years ago

I "highly" recommend you to "watch" the package updates if you plan to use it often. 80% of bug reports are due to using old versions... it'd save time to both of us ;)