Fix broken tests
This commit is contained in:
+4
-4
@@ -42,21 +42,21 @@ logger = logging.getLogger(__name__)
|
||||
# Translation map for item layouts
|
||||
NOVEL_MAP = {
|
||||
nwItemLayout.SCENE: {
|
||||
"H1": nwItemLayout.PARTITION,
|
||||
"H1": nwItemLayout.BOOK,
|
||||
"H2": nwItemLayout.CHAPTER,
|
||||
"H4": nwItemLayout.SCENE,
|
||||
},
|
||||
nwItemLayout.CHAPTER: {
|
||||
"H1": nwItemLayout.PARTITION,
|
||||
"H1": nwItemLayout.BOOK,
|
||||
"H3": nwItemLayout.SCENE,
|
||||
"H4": nwItemLayout.SCENE,
|
||||
},
|
||||
nwItemLayout.UNNUMBERED: {
|
||||
"H1": nwItemLayout.PARTITION,
|
||||
"H1": nwItemLayout.BOOK,
|
||||
"H3": nwItemLayout.SCENE,
|
||||
"H4": nwItemLayout.SCENE,
|
||||
},
|
||||
nwItemLayout.PARTITION: {
|
||||
nwItemLayout.BOOK: {
|
||||
"H2": nwItemLayout.CHAPTER,
|
||||
"H3": nwItemLayout.SCENE,
|
||||
"H4": nwItemLayout.SCENE,
|
||||
|
||||
@@ -567,5 +567,67 @@
|
||||
259,
|
||||
3
|
||||
]
|
||||
},
|
||||
"firstTitle": {
|
||||
"7a992350f3eb6": [
|
||||
"H1",
|
||||
"T000001"
|
||||
],
|
||||
"8c58a65414c23": [
|
||||
"H0",
|
||||
"T000000"
|
||||
],
|
||||
"88d59a277361b": [
|
||||
"H2",
|
||||
"T000001"
|
||||
],
|
||||
"db7e733775d4d": [
|
||||
"H1",
|
||||
"T000001"
|
||||
],
|
||||
"fb609cd8319dc": [
|
||||
"H2",
|
||||
"T000001"
|
||||
],
|
||||
"88243afbe5ed8": [
|
||||
"H3",
|
||||
"T000001"
|
||||
],
|
||||
"f96ec11c6a3da": [
|
||||
"H3",
|
||||
"T000001"
|
||||
],
|
||||
"846352075de7d": [
|
||||
"H2",
|
||||
"T000001"
|
||||
],
|
||||
"441420a886d82": [
|
||||
"H2",
|
||||
"T000001"
|
||||
],
|
||||
"eb103bc70c90c": [
|
||||
"H3",
|
||||
"T000001"
|
||||
],
|
||||
"f8c0562e50f1b": [
|
||||
"H3",
|
||||
"T000001"
|
||||
],
|
||||
"47666c91c7ccf": [
|
||||
"H3",
|
||||
"T000001"
|
||||
],
|
||||
"4c4f28287af27": [
|
||||
"H1",
|
||||
"T000001"
|
||||
],
|
||||
"2426c6f0ca922": [
|
||||
"H1",
|
||||
"T000001"
|
||||
],
|
||||
"04468803b92e1": [
|
||||
"H1",
|
||||
"T000001"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
%%~name: New Scene
|
||||
%%~path: 31489056e0916/0e17daca5f3e1
|
||||
%%~kind: NOVEL/SCENE
|
||||
%%~kind: NOVEL/BOOK
|
||||
# Novel
|
||||
|
||||
## Chapter
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<novelWriterXML appVersion="1.0b3" hexVersion="0x010000b3" fileVersion="1.2" timeStamp="2020-09-21 19:58:53">
|
||||
<novelWriterXML appVersion="1.2a0" hexVersion="0x010200a0" fileVersion="1.2" timeStamp="2021-01-29 01:10:23">
|
||||
<project>
|
||||
<name>New Project</name>
|
||||
<title></title>
|
||||
<saveCount>4</saveCount>
|
||||
<autoCount>1</autoCount>
|
||||
<editTime>11</editTime>
|
||||
<autoCount>2</autoCount>
|
||||
<editTime>8</editTime>
|
||||
</project>
|
||||
<settings>
|
||||
<doBackup>True</doBackup>
|
||||
@@ -83,7 +83,7 @@
|
||||
<class>NOVEL</class>
|
||||
<status>New</status>
|
||||
<exported>True</exported>
|
||||
<layout>SCENE</layout>
|
||||
<layout>BOOK</layout>
|
||||
<charCount>466</charCount>
|
||||
<wordCount>83</wordCount>
|
||||
<paraCount>4</paraCount>
|
||||
|
||||
Reference in New Issue
Block a user