Simon-Initiative / course-digest

Tool to produce a summary or digest of OLI course package contents
MIT License
2 stars 0 forks source link

[BUG FIX] [MER-3159] fix extraneous trailing backslash in some code block lines #247

Closed andersweinstein closed 5 months ago

andersweinstein commented 5 months ago

Codeblock lines with trailing whitespace were coming out of migration with extraneous backslashes at the end. This was due to a flaw in the escaping/unescaping of white space done to preserve whitespace through various whitespace-normalizing parses the tool applies. This fixes by escaping leading and internal whitespace only, stripping trailing white space in codeblock lines on assumption it is never needed.