Ihor Radchenko <[email protected]> writes:
Morgan Smith <[email protected]> writes:
Fixed, as the following commits:
f46d8a23a org-babel-insert-result: Handle whitespace and empty
results
Have you considered empty inline result?
Fair question. I don't claim to understand the function I have
modified. It has lots of twists and turns. It could probably be
simplified a bit.
However, I did some informal functional testing to determine that
inline results trim newlines off the end of the result. The
following results remain unchanged before and after the commit:
src_elisp{""} {{{results(==)}}}
src_elisp{" "} {{{results(= =)}}}
src_elisp{"\n"} {{{results(==)}}}
src_elisp{" \n"} {{{results(= =)}}}
src_elisp{" \n\n\n\n\n"} {{{results(= =)}}}