We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0625bce commit 26b5d2fCopy full SHA for 26b5d2f
src/stylemacro.jl
@@ -215,13 +215,13 @@ macro styled_str(raw_content::String)
215
if char in ('{', '}', '$', '\\')
216
deleteat!(state.bytes, i + state.offset[] - 1)
217
state.offset[] -= ncodeunits('\\')
218
- elseif char ∈ ('\n', '\r')
+ elseif char ∈ ('\n', '\r') && !isempty(state.s)
219
skipped = 0
220
if char == '\r' && last(peek(state.s)) == '\n'
221
popfirst!(state.s)
222
skipped += 1
223
end
224
- while last(peek(state.s)) ∈ (' ', '\t')
+ while !isempty(state.s) && last(peek(state.s)) ∈ (' ', '\t')
225
226
227
0 commit comments