pub enum WarningKind {
Show 22 variants
NoTitle,
NoChapters,
TextBeforeFirstChapter,
TitlePageReplaced,
TableOfContentsRemoved,
TableFlattened,
TableSimplified,
TextBoxSkipped,
ImageUnsupported,
ImageMissing,
TrackedChangesAccepted,
LineBreaksJoined,
PageBreaksIgnored,
SceneBreaksFromBlankLines,
DamagedFile,
FootnoteMissing,
FootnoteUnused,
VerseNotClosed,
FrontMatterKeyIgnored,
ListFlattened,
EndMarkRemoved,
ImagePositionDropped,
}Expand description
What a warning is about, so the UI can group and link warnings and tests can assert on them without matching prose.
Variants§
NoTitle
NoChapters
TextBeforeFirstChapter
TitlePageReplaced
TableOfContentsRemoved
TableFlattened
A table that stayed paragraphs, in reading order: a one-column table (a boxed note), a table with a picture in a cell, a table with a single cell. Every other table becomes a table block.
TableSimplified
A table became a table block, or was dropped because it was empty, and something in it could not be kept: a nested table, rotated text, a list or several paragraphs in a cell, a cell past the header’s count (Markdown), a merge Word wrote inconsistently (.docx), a table with cells but no rows or no text (dropped). Formatting a theme decides anyway (shading, borders, fonts) gives no warning. One per table.
TextBoxSkipped
ImageUnsupported
ImageMissing
TrackedChangesAccepted
LineBreaksJoined
PageBreaksIgnored
SceneBreaksFromBlankLines
DamagedFile
FootnoteMissing
A footnote mark without a definition (Markdown).
FootnoteUnused
A footnote definition no mark uses, or a second one for a label (Markdown); its text is not in the book.
VerseNotClosed
A :::verse fence without its closing ::: (Markdown).
FrontMatterKeyIgnored
A front-matter key Kernsetzer does not read, or a value or line it could not read (Markdown YAML); left out of the book.
ListFlattened
A numbered list that does not start at 1, kept as paragraphs with their numbers (Markdown; the model numbers lists from 1).
EndMarkRemoved
A closing “END” / “Ende” under the manuscript’s last paragraph, left out of the book (.docx).
ImagePositionDropped
A picture in front of or behind the text (.docx, wp:wrapNone): it
is set in the text where it was anchored, its position is not kept.
One per book.
Trait Implementations§
Source§impl Clone for WarningKind
impl Clone for WarningKind
impl Copy for WarningKind
Source§impl Debug for WarningKind
impl Debug for WarningKind
impl Eq for WarningKind
Source§impl Hash for WarningKind
impl Hash for WarningKind
Source§impl PartialEq for WarningKind
impl PartialEq for WarningKind
Source§impl Serialize for WarningKind
impl Serialize for WarningKind
impl StructuralPartialEq for WarningKind
Auto Trait Implementations§
impl Freeze for WarningKind
impl RefUnwindSafe for WarningKind
impl Send for WarningKind
impl Sync for WarningKind
impl Unpin for WarningKind
impl UnsafeUnpin for WarningKind
impl UnwindSafe for WarningKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.