Fixed the formatting of novel page layout
This commit is contained in:
@@ -540,6 +540,20 @@ class Tokenizer():
|
|||||||
tToken[0], tToken[1], tToken[2], tToken[3] | self.A_PBA
|
tToken[0], tToken[1], tToken[2], tToken[3] | self.A_PBA
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if self.isPage:
|
||||||
|
for n, tToken in enumerate(self.theTokens):
|
||||||
|
tType = tToken[0]
|
||||||
|
tText = tToken[1]
|
||||||
|
tFormat = tToken[2]
|
||||||
|
if n == 0:
|
||||||
|
self.theTokens[n] = (
|
||||||
|
tType, tText, tFormat, self.A_LEFT | self.A_PBB
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
self.theTokens[n] = (
|
||||||
|
tType, tText, tFormat, self.A_LEFT
|
||||||
|
)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
%%~ 974e400180a99:7031beac91f75:Page
|
||||||
|
This is a plain page with some text on it.
|
||||||
|
|
||||||
|
This file should receive no special formatting, but the text will always be left aligned and the content will always start on a fresh page when the project is exported.
|
||||||
+26
-13
@@ -1,5 +1,5 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<novelWriterXML appVersion="0.6" hexVersion="0x000600f0" fileVersion="1.0" saveCount="166" autoCount="22" timeStamp="2020-05-24 16:07:23">
|
<novelWriterXML appVersion="0.6" hexVersion="0x000600f0" fileVersion="1.0" saveCount="168" autoCount="26" timeStamp="2020-05-24 18:33:34">
|
||||||
<project>
|
<project>
|
||||||
<name>Sample Project</name>
|
<name>Sample Project</name>
|
||||||
<title>Sample Project</title>
|
<title>Sample Project</title>
|
||||||
@@ -11,8 +11,8 @@
|
|||||||
<spellCheck>True</spellCheck>
|
<spellCheck>True</spellCheck>
|
||||||
<autoOutline>True</autoOutline>
|
<autoOutline>True</autoOutline>
|
||||||
<lastEdited>636b6aa9b697b</lastEdited>
|
<lastEdited>636b6aa9b697b</lastEdited>
|
||||||
<lastViewed>6a2d6d5f4f401</lastViewed>
|
<lastViewed>ba8a28a246524</lastViewed>
|
||||||
<lastWordCount>875</lastWordCount>
|
<lastWordCount>914</lastWordCount>
|
||||||
<autoReplace>
|
<autoReplace>
|
||||||
<A>B</A>
|
<A>B</A>
|
||||||
<B>E</B>
|
<B>E</B>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<entry blue="175" green="0" red="117">Main</entry>
|
<entry blue="175" green="0" red="117">Main</entry>
|
||||||
</importance>
|
</importance>
|
||||||
</settings>
|
</settings>
|
||||||
<content count="21">
|
<content count="22">
|
||||||
<item handle="7031beac91f75" order="0" parent="None">
|
<item handle="7031beac91f75" order="0" parent="None">
|
||||||
<name>Novel</name>
|
<name>Novel</name>
|
||||||
<type>ROOT</type>
|
<type>ROOT</type>
|
||||||
@@ -65,20 +65,33 @@
|
|||||||
<paraCount>2</paraCount>
|
<paraCount>2</paraCount>
|
||||||
<cursorPos>78</cursorPos>
|
<cursorPos>78</cursorPos>
|
||||||
</item>
|
</item>
|
||||||
<item handle="edca4be2fcaf8" order="1" parent="7031beac91f75">
|
<item handle="974e400180a99" order="1" parent="7031beac91f75">
|
||||||
<name>Part 1</name>
|
<name>Page</name>
|
||||||
|
<type>FILE</type>
|
||||||
|
<class>NOVEL</class>
|
||||||
|
<status>New</status>
|
||||||
|
<expanded>False</expanded>
|
||||||
|
<exported>True</exported>
|
||||||
|
<layout>PAGE</layout>
|
||||||
|
<charCount>208</charCount>
|
||||||
|
<wordCount>40</wordCount>
|
||||||
|
<paraCount>2</paraCount>
|
||||||
|
<cursorPos>213</cursorPos>
|
||||||
|
</item>
|
||||||
|
<item handle="edca4be2fcaf8" order="2" parent="7031beac91f75">
|
||||||
|
<name>Part One</name>
|
||||||
<type>FILE</type>
|
<type>FILE</type>
|
||||||
<class>NOVEL</class>
|
<class>NOVEL</class>
|
||||||
<status>New</status>
|
<status>New</status>
|
||||||
<expanded>False</expanded>
|
<expanded>False</expanded>
|
||||||
<exported>True</exported>
|
<exported>True</exported>
|
||||||
<layout>PARTITION</layout>
|
<layout>PARTITION</layout>
|
||||||
<charCount>0</charCount>
|
<charCount>23</charCount>
|
||||||
<wordCount>0</wordCount>
|
<wordCount>5</wordCount>
|
||||||
<paraCount>0</paraCount>
|
<paraCount>1</paraCount>
|
||||||
<cursorPos>0</cursorPos>
|
<cursorPos>0</cursorPos>
|
||||||
</item>
|
</item>
|
||||||
<item handle="e7ded148d6e4a" order="2" parent="7031beac91f75">
|
<item handle="e7ded148d6e4a" order="3" parent="7031beac91f75">
|
||||||
<name>A Folder</name>
|
<name>A Folder</name>
|
||||||
<type>FOLDER</type>
|
<type>FOLDER</type>
|
||||||
<class>NOVEL</class>
|
<class>NOVEL</class>
|
||||||
@@ -277,9 +290,9 @@
|
|||||||
<expanded>False</expanded>
|
<expanded>False</expanded>
|
||||||
<exported>True</exported>
|
<exported>True</exported>
|
||||||
<layout>SCENE</layout>
|
<layout>SCENE</layout>
|
||||||
<charCount>30</charCount>
|
<charCount>0</charCount>
|
||||||
<wordCount>6</wordCount>
|
<wordCount>0</wordCount>
|
||||||
<paraCount>1</paraCount>
|
<paraCount>0</paraCount>
|
||||||
<cursorPos>36</cursorPos>
|
<cursorPos>36</cursorPos>
|
||||||
</item>
|
</item>
|
||||||
</content>
|
</content>
|
||||||
|
|||||||
Reference in New Issue
Block a user