Skip to content

Commit 27ca4e1

Browse files
authored
Merge pull request #3 from Systemdir/master
added support for RTF \ulnone
2 parents 81157d5 + 5b77e9e commit 27ca4e1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Source/RtfDomParser/RTFConsts.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public sealed class RTFConsts
105105
public const string _v = "v";
106106
public const string _highlight = "highlight";
107107
public const string _ul = "ul";
108+
public const string _noul = "ulnone";
108109
public const string _strike = "strike";
109110
public const string _sub = "sub";
110111
public const string _super = "super";

Source/RtfDomParser/RTFDomDocument.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2349,6 +2349,15 @@ private void Load(RTFReader reader , DocumentFormatInfo parentFormat)
23492349
}
23502350
break;
23512351
}
2352+
case RTFConsts._noul:
2353+
{
2354+
// no underline
2355+
bolStartContent = true;
2356+
format.Underline = false;
2357+
2358+
break;
2359+
}
2360+
23522361
case RTFConsts._strike:
23532362
{
23542363
// strikeout

0 commit comments

Comments
 (0)