frontend: print nothing under an empty paragraph
An empty paragraph printed 「(本段暂无内容)」 under its heading. A paragraph with no sentences is not an error to report: it is a position in an outline, and some of those are meant to be empty — a separator, a position the template reserves, a section the writer has not reached yet. The words also go with the paper on export, which is worse: a placeholder is the tool talking, inside the document. The structure stays exactly as it was (the heading, the count, the edit button); only the annotation is gone. Measured on a paper with 19 empty paragraphs: no placeholder element anywhere, the text absent from the page, and each empty paragraph renders as its heading alone at 56px.
This commit is contained in:
@@ -11,8 +11,9 @@
|
||||
* Three states are visible and none of them is an error:
|
||||
*
|
||||
* * a **written paragraph** — heading, prose, numbered citation markers;
|
||||
* * an **empty paragraph** — heading and a placeholder, because the structure
|
||||
* is there before the words are;
|
||||
* * an **empty paragraph** — its heading and nothing else. Some positions in an
|
||||
* outline are meant to stay empty, so a blank paragraph is printed blank
|
||||
* rather than annotated;
|
||||
* * an **unmatched paragraph** (未设定) — content whose position the current
|
||||
* template does not define, kept in order rather than hidden, and recoverable
|
||||
* by editing the paragraph or switching back.
|
||||
|
||||
Reference in New Issue
Block a user