Skip to content

Commit 65a82a1

Browse files
authored
chore: update text label for test doc creation (#195)
Signed-off-by: Panos Vagenas <[email protected]>
1 parent 87508b1 commit 65a82a1

9 files changed

+135
-137
lines changed

test/data/doc/constructed_doc.dt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ Affiliation 2</text>
2929
<unordered_list><list_item>item 1 of neighboring list</list_item>
3030
<list_item>item 2 of neighboring list</list_item>
3131
<unordered_list><list_item>item 1 of sub list</list_item>
32-
<paragraph>Here a code snippet:</paragraph>
32+
<text>Here a code snippet:</text>
3333
<code><_unknown_><p>Hello world</p></code>
34-
<paragraph>(to be displayed inline)</paragraph>
34+
<text>(to be displayed inline)</text>
3535
</unordered_list>
36-
<paragraph>Here a formula:</paragraph>
36+
<text>Here a formula:</text>
3737
<formula>E=mc^2</formula>
38-
<paragraph>(to be displayed inline)</paragraph>
38+
<text>(to be displayed inline)</text>
3939
</unordered_list>
4040
</unordered_list>
41-
<paragraph>Here a code block:</paragraph>
41+
<text>Here a code block:</text>
4242
<code><_unknown_>print("Hello world")</code>
43-
<paragraph>Here a formula block:</paragraph>
43+
<text>Here a formula block:</text>
4444
<formula>E=mc^2</formula>
45-
<paragraph>Some formatting chops:</paragraph>
46-
<paragraph>bold</paragraph>
47-
<paragraph>italic</paragraph>
48-
<paragraph>underline</paragraph>
49-
<paragraph>strikethrough</paragraph>
50-
<paragraph>hyperlink</paragraph>
51-
<paragraph>&</paragraph>
52-
<paragraph>everything at the same time.</paragraph>
53-
<paragraph>The end.</paragraph>
45+
<text>Some formatting chops:</text>
46+
<text>bold</text>
47+
<text>italic</text>
48+
<text>underline</text>
49+
<text>strikethrough</text>
50+
<text>hyperlink</text>
51+
<text>&</text>
52+
<text>everything at the same time.</text>
53+
<text>The end.</text>
5454
</doctag>

test/data/doc/constructed_doc.dt.gt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@ Affiliation 2</text>
2929
<unordered_list><list_item>item 1 of neighboring list</list_item>
3030
<list_item>item 2 of neighboring list</list_item>
3131
<unordered_list><list_item>item 1 of sub list</list_item>
32-
<paragraph>Here a code snippet:</paragraph>
32+
<text>Here a code snippet:</text>
3333
<code><_unknown_><p>Hello world</p></code>
34-
<paragraph>(to be displayed inline)</paragraph>
34+
<text>(to be displayed inline)</text>
3535
</unordered_list>
36-
<paragraph>Here a formula:</paragraph>
36+
<text>Here a formula:</text>
3737
<formula>E=mc^2</formula>
38-
<paragraph>(to be displayed inline)</paragraph>
38+
<text>(to be displayed inline)</text>
3939
</unordered_list>
4040
</unordered_list>
41-
<paragraph>Here a code block:</paragraph>
41+
<text>Here a code block:</text>
4242
<code><_unknown_>print("Hello world")</code>
43-
<paragraph>Here a formula block:</paragraph>
43+
<text>Here a formula block:</text>
4444
<formula>E=mc^2</formula>
45-
<paragraph>Some formatting chops:</paragraph>
46-
<paragraph>bold</paragraph>
47-
<paragraph>italic</paragraph>
48-
<paragraph>underline</paragraph>
49-
<paragraph>strikethrough</paragraph>
50-
<paragraph>hyperlink</paragraph>
51-
<paragraph>&</paragraph>
52-
<paragraph>everything at the same time.</paragraph>
53-
<paragraph>The end.</paragraph>
45+
<text>Some formatting chops:</text>
46+
<text>bold</text>
47+
<text>italic</text>
48+
<text>underline</text>
49+
<text>strikethrough</text>
50+
<text>hyperlink</text>
51+
<text>&</text>
52+
<text>everything at the same time.</text>
53+
<text>The end.</text>
5454
</doctag>

test/data/doc/constructed_doc.embedded.json.gt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@
660660
},
661661
"children": [],
662662
"content_layer": "body",
663-
"label": "paragraph",
663+
"label": "text",
664664
"prov": [],
665665
"orig": "Here a code snippet:",
666666
"text": "Here a code snippet:"
@@ -688,7 +688,7 @@
688688
},
689689
"children": [],
690690
"content_layer": "body",
691-
"label": "paragraph",
691+
"label": "text",
692692
"prov": [],
693693
"orig": "(to be displayed inline)",
694694
"text": "(to be displayed inline)"
@@ -700,7 +700,7 @@
700700
},
701701
"children": [],
702702
"content_layer": "body",
703-
"label": "paragraph",
703+
"label": "text",
704704
"prov": [],
705705
"orig": "Here a formula:",
706706
"text": "Here a formula:"
@@ -724,7 +724,7 @@
724724
},
725725
"children": [],
726726
"content_layer": "body",
727-
"label": "paragraph",
727+
"label": "text",
728728
"prov": [],
729729
"orig": "(to be displayed inline)",
730730
"text": "(to be displayed inline)"
@@ -736,7 +736,7 @@
736736
},
737737
"children": [],
738738
"content_layer": "body",
739-
"label": "paragraph",
739+
"label": "text",
740740
"prov": [],
741741
"orig": "Here a code block:",
742742
"text": "Here a code block:"
@@ -764,7 +764,7 @@
764764
},
765765
"children": [],
766766
"content_layer": "body",
767-
"label": "paragraph",
767+
"label": "text",
768768
"prov": [],
769769
"orig": "Here a formula block:",
770770
"text": "Here a formula block:"
@@ -788,7 +788,7 @@
788788
},
789789
"children": [],
790790
"content_layer": "body",
791-
"label": "paragraph",
791+
"label": "text",
792792
"prov": [],
793793
"orig": "Some formatting chops:",
794794
"text": "Some formatting chops:"
@@ -800,7 +800,7 @@
800800
},
801801
"children": [],
802802
"content_layer": "body",
803-
"label": "paragraph",
803+
"label": "text",
804804
"prov": [],
805805
"orig": "bold",
806806
"text": "bold",
@@ -818,7 +818,7 @@
818818
},
819819
"children": [],
820820
"content_layer": "body",
821-
"label": "paragraph",
821+
"label": "text",
822822
"prov": [],
823823
"orig": "italic",
824824
"text": "italic",
@@ -836,7 +836,7 @@
836836
},
837837
"children": [],
838838
"content_layer": "body",
839-
"label": "paragraph",
839+
"label": "text",
840840
"prov": [],
841841
"orig": "underline",
842842
"text": "underline",
@@ -854,7 +854,7 @@
854854
},
855855
"children": [],
856856
"content_layer": "body",
857-
"label": "paragraph",
857+
"label": "text",
858858
"prov": [],
859859
"orig": "strikethrough",
860860
"text": "strikethrough",
@@ -872,7 +872,7 @@
872872
},
873873
"children": [],
874874
"content_layer": "body",
875-
"label": "paragraph",
875+
"label": "text",
876876
"prov": [],
877877
"orig": "hyperlink",
878878
"text": "hyperlink",
@@ -885,7 +885,7 @@
885885
},
886886
"children": [],
887887
"content_layer": "body",
888-
"label": "paragraph",
888+
"label": "text",
889889
"prov": [],
890890
"orig": "&",
891891
"text": "&"
@@ -897,7 +897,7 @@
897897
},
898898
"children": [],
899899
"content_layer": "body",
900-
"label": "paragraph",
900+
"label": "text",
901901
"prov": [],
902902
"orig": "everything at the same time.",
903903
"text": "everything at the same time.",
@@ -916,7 +916,7 @@
916916
},
917917
"children": [],
918918
"content_layer": "body",
919-
"label": "paragraph",
919+
"label": "text",
920920
"prov": [],
921921
"orig": "The end.",
922922
"text": "The end."

test/data/doc/constructed_doc.embedded.yaml.gt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ texts:
679679
text: item 1 of sub list
680680
- children: []
681681
content_layer: body
682-
label: paragraph
682+
label: text
683683
orig: 'Here a code snippet:'
684684
parent:
685685
$ref: '#/groups/10'
@@ -701,7 +701,7 @@ texts:
701701
text: <p>Hello world</p>
702702
- children: []
703703
content_layer: body
704-
label: paragraph
704+
label: text
705705
orig: (to be displayed inline)
706706
parent:
707707
$ref: '#/groups/10'
@@ -710,7 +710,7 @@ texts:
710710
text: (to be displayed inline)
711711
- children: []
712712
content_layer: body
713-
label: paragraph
713+
label: text
714714
orig: 'Here a formula:'
715715
parent:
716716
$ref: '#/groups/11'
@@ -728,7 +728,7 @@ texts:
728728
text: E=mc^2
729729
- children: []
730730
content_layer: body
731-
label: paragraph
731+
label: text
732732
orig: (to be displayed inline)
733733
parent:
734734
$ref: '#/groups/11'
@@ -737,7 +737,7 @@ texts:
737737
text: (to be displayed inline)
738738
- children: []
739739
content_layer: body
740-
label: paragraph
740+
label: text
741741
orig: 'Here a code block:'
742742
parent:
743743
$ref: '#/body'
@@ -759,7 +759,7 @@ texts:
759759
text: print("Hello world")
760760
- children: []
761761
content_layer: body
762-
label: paragraph
762+
label: text
763763
orig: 'Here a formula block:'
764764
parent:
765765
$ref: '#/body'
@@ -777,7 +777,7 @@ texts:
777777
text: E=mc^2
778778
- children: []
779779
content_layer: body
780-
label: paragraph
780+
label: text
781781
orig: 'Some formatting chops:'
782782
parent:
783783
$ref: '#/groups/12'
@@ -791,7 +791,7 @@ texts:
791791
italic: false
792792
strikethrough: false
793793
underline: false
794-
label: paragraph
794+
label: text
795795
orig: bold
796796
parent:
797797
$ref: '#/groups/12'
@@ -805,7 +805,7 @@ texts:
805805
italic: true
806806
strikethrough: false
807807
underline: false
808-
label: paragraph
808+
label: text
809809
orig: italic
810810
parent:
811811
$ref: '#/groups/12'
@@ -819,7 +819,7 @@ texts:
819819
italic: false
820820
strikethrough: false
821821
underline: true
822-
label: paragraph
822+
label: text
823823
orig: underline
824824
parent:
825825
$ref: '#/groups/12'
@@ -833,7 +833,7 @@ texts:
833833
italic: false
834834
strikethrough: true
835835
underline: false
836-
label: paragraph
836+
label: text
837837
orig: strikethrough
838838
parent:
839839
$ref: '#/groups/12'
@@ -843,7 +843,7 @@ texts:
843843
- children: []
844844
content_layer: body
845845
hyperlink: .
846-
label: paragraph
846+
label: text
847847
orig: hyperlink
848848
parent:
849849
$ref: '#/groups/12'
@@ -852,7 +852,7 @@ texts:
852852
text: hyperlink
853853
- children: []
854854
content_layer: body
855-
label: paragraph
855+
label: text
856856
orig: '&'
857857
parent:
858858
$ref: '#/groups/12'
@@ -867,7 +867,7 @@ texts:
867867
strikethrough: true
868868
underline: true
869869
hyperlink: https://github.com/DS4SD/docling
870-
label: paragraph
870+
label: text
871871
orig: everything at the same time.
872872
parent:
873873
$ref: '#/groups/12'
@@ -876,7 +876,7 @@ texts:
876876
text: everything at the same time.
877877
- children: []
878878
content_layer: body
879-
label: paragraph
879+
label: text
880880
orig: The end.
881881
parent:
882882
$ref: '#/body'

0 commit comments

Comments
 (0)