Skip to content

Commit

Permalink
fix(#2873): fix 1 byte printing
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Feb 29, 2024
1 parent 5a5738b commit 0a5eec0
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
@@ -1,5 +1,7 @@
origin: |
EA-EA-EA-EA > xs
01- > one
"hello" > ys
Expand All @@ -10,6 +12,8 @@ origin: |
straight: |
EA-EA-EA-EA > xs
01- > one
"hello" > ys
TRUE > b1
Expand All @@ -19,6 +23,8 @@ straight: |
reversed: |
EA-EA-EA-EA > xs
01- > one
"hello" > ys
TRUE > b1
Expand Down
@@ -0,0 +1,26 @@
origin: |
# Test.
[] > compares-bool-to-bytes
and. > @
TRUE.eq 01-
FALSE.eq 00-
straight: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > compares-bool-to-bytes
TRUE
.eq
01-
.and > @
FALSE
.eq
00-
reversed: |
# This is the default 64+ symbols comment in front of named abstract object.
[] > compares-bool-to-bytes
and. > @
eq.
TRUE
01-
eq.
FALSE
00-
Expand Up @@ -158,6 +158,10 @@ SOFTWARE.
<xsl:when test="empty(text())">
<xsl:text>--</xsl:text>
</xsl:when>
<xsl:when test="string-length(text())=2">
<xsl:value-of select="text()"/>
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="replace(text(), ' ', '-')"/>
</xsl:otherwise>
Expand Down
4 changes: 4 additions & 0 deletions eo-parser/src/main/resources/org/eolang/parser/xmir-to-eo.xsl
Expand Up @@ -174,6 +174,10 @@ SOFTWARE.
<xsl:when test="empty(text())">
<xsl:text>--</xsl:text>
</xsl:when>
<xsl:when test="string-length(text())=2">
<xsl:value-of select="text()"/>
<xsl:text>-</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="replace(text(), ' ', '-')"/>
</xsl:otherwise>
Expand Down

0 comments on commit 0a5eec0

Please sign in to comment.