Closed danl3v closed 6 years ago
Thanks Daniel for raising this issue đź‘Ť
However I'm inclined to to close it as Won't Fix until it's a real problem for someone. I suspect it's REXML's .to_s
that collapses the tags. SO suggests that an injected empty string content would preserve the closing tag. But...phew...looks like complexity without real benefit to me. @scelis?
Hmm, I tend to agree. If this is caused by REXML and there's no way to configure it differently, I think using something like a zero width space character is a valid workaround.
Yeah we found the same thing and couldn’t find a fix after looking into the docs for REXML. I am find closing. We shouldn’t have empty tags of html anyways
Thanks for looking into it!
If you're reporting a bug, please do the following:
Mention the Twine version you're using
Provide a minimal but complete input file causing the error (inline with triple ` is fine)
Quote the exact twine command that's being run
Provide the complete expected output (again, inline is fine) I would expect the same output as the input but I see this. This shouldn't really be an issue in the wild since we usually don't have tags with no contents, but it might cause folks some unexpected issues.