commit a37e5b84fed83a1d099268c36fd16708dd441f17 Author: Tanmai Khanna Date: Sat Aug 8 15:17:54 2020 +0530 show wblank when printing tree diff --git a/src/chunk.h b/src/chunk.h index 8dfa72d..fd62bf5 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -121,6 +121,10 @@ public: return UtfConverter::fromUtf8(result); } } + wstring getWblank() + { + return wblank; + } void setChunkPart(ApertiumRE const &part, wstring const &value) { string surf = UtfConverter::toUtf8(target); @@ -414,7 +418,14 @@ private: { base += L'\t'; } - if(!isBlank) base += L"^"; + if(!isBlank) + { + if(wblank.size() > 0) + { + base += wblank; + } + base += L"^"; + } if(source.size() > 0) { base += source + L"/";