Skip to content

Commit

Permalink
show wblank when printing tree
Browse files Browse the repository at this point in the history
  • Loading branch information
khannatanmai committed Aug 8, 2020
1 parent fa7a030 commit a37e5b8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/chunk.h
Expand Up @@ -121,6 +121,10 @@ class Chunk
return UtfConverter::fromUtf8(result);
}
}
wstring getWblank()

This comment has been minimized.

Copy link
@mr-martian

mr-martian Aug 8, 2020

Collaborator

since wblank is a public member, this method is redundant.

This comment has been minimized.

Copy link
@khannatanmai

khannatanmai Aug 8, 2020

Author Member

ah didn't notice it's public

{
return wblank;
}
void setChunkPart(ApertiumRE const &part, wstring const &value)
{
string surf = UtfConverter::toUtf8(target);
Expand Down Expand Up @@ -414,7 +418,14 @@ class Chunk
{
base += L'\t';
}
if(!isBlank) base += L"^";
if(!isBlank)
{
if(wblank.size() > 0)
{
base += wblank;
}
base += L"^";
}
if(source.size() > 0)
{
base += source + L"/";
Expand Down

0 comments on commit a37e5b8

Please sign in to comment.