Skip to content

Commit

Permalink
fix: update tmx writer test expectation
Browse files Browse the repository at this point in the history
- use double quote for attribute
- format indentation and empty line

Signed-off-by: Hiroshi Miura <[email protected]>
  • Loading branch information
miurahr committed Jun 2, 2024
1 parent df03351 commit 78e7fe7
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions test/data/tmx/test-save-tmx14.tmx
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tmx SYSTEM "tmx14.dtd">
<tmx version="1.4">
<header datatype="plaintext" srclang="en-US" adminlang="EN-US" o-tmf="OmegaT TMX" segtype="paragraph" creationtoolversion="test" creationtool="test"/>
<header datatype="plaintext" srclang="en-US" adminlang="EN-US" o-tmf="OmegaT TMX" segtype="paragraph"
creationtoolversion="test" creationtool="test"/>
<body>
<tu>
<tuv xml:lang="en-US">
<seg>source</seg>
</tuv>
<tuv xml:lang="be-BY">
<seg>target</seg>
</tuv>
<tuv xml:lang="en-US">
<seg>source</seg>
</tuv>
<tuv xml:lang="be-BY">
<seg>target</seg>
</tuv>
</tu>

<tu>
<tuv xml:lang="en-US">
<seg>1<ph x='1'>&lt;a1/&gt;</ph>2</seg>
<seg>1<ph x="1">&lt;a1/&gt;</ph>2</seg>
</tuv>
<tuv xml:lang="be-BY">
<seg>zz</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="en-US">
<seg>3<bpt i='1' x='1'>&lt;a1&gt;</bpt>4<ept i='1'>&lt;/a1&gt;</ept>5</seg>
<seg>3<bpt i="1" x="1">&lt;a1&gt;</bpt>4<ept i="1">&lt;/a1&gt;</ept>5</seg>
</tuv>
<tuv xml:lang="be-BY">
<seg>zz</seg>
</tuv>
</tu>
<tu>
<tuv xml:lang="en-US">
<seg>6<it pos='begin' x='1'>&lt;a1&gt;</it>7</seg>
<seg>6<it pos="begin" x="1">&lt;a1&gt;</it>7</seg>
</tuv>
<tuv xml:lang="be-BY">
<seg>zz</seg>
</tuv>
</tu>

</body>
</tmx>

0 comments on commit 78e7fe7

Please sign in to comment.