Apply foreach
on class StringLineGroup
got phantom empty line, is it expected?
#757
Labels
foreach
on class StringLineGroup
got phantom empty line, is it expected?
#757
I' m writing code to dump a
FencedCodeBlock
, here is the function:Then I see output contains suspicious empty line like this:
And the corresponding markdown is:
```
characters.sifeng.voice("c1s1", 3)
```
After some investigation, I found the enumerator of
StringLineGroup
returns internal array's enumerator directly. The array contains reserved slot for future item adding, that's the reason why we see phantom empty lines.Shall we change the
GetEnumerator()
forStringLineGroup
? I can provide some help.The text was updated successfully, but these errors were encountered: