diff options
Diffstat (limited to 'dlang/src/write/text.d')
| -rw-r--r-- | dlang/src/write/text.d | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dlang/src/write/text.d b/dlang/src/write/text.d index 9853a7e..0ce53f8 100644 --- a/dlang/src/write/text.d +++ b/dlang/src/write/text.d @@ -128,9 +128,11 @@ string[] textSections(ref OcdaDocument doc) { +/ private string objectOut(ref const OcdaObject obj) { /+ ↓ an object with no text of its own writes nothing. A poem is such an - object: it is a container that closes a run of verses and carries the - *same* object number as the last of them, so writing it would put that - number in the file twice - 15 times over in one sample. +/ + object: a container of the verses that follow it, which are what is + written. Since format 2.1 it carries object number 0 and states the + range of its verses; before, it closed the run carrying the *same* + number as the last verse, and writing it put that number in the file + twice - 15 times over in one sample. Both forms write nothing. +/ if (obj.text.strip.length == 0) { return ""; } /+ ↓ and a dummy heading writes nothing: it is generated furniture whose text repeats the heading above it, and every other writer here drops |
