Skip to content

Commit

Permalink
Export w/o <br> HTML fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Torgashov committed Aug 12, 2014
1 parent 8e8b9a0 commit 0148af1
Showing 6 changed files with 5 additions and 4 deletions.
Binary file modified Binary/FastColoredTextBox.dll
Binary file not shown.
Binary file modified Binary/Tester.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion FastColoredTextBox/Commands.cs
Original file line number Diff line number Diff line change
@@ -43,7 +43,7 @@ public override void Undo()
break;
case '\t':
ts.CurrentTB.ExpandBlock(sel.Start.iLine);
for (int i = sel.Start.iChar; i < lastSel.FromX; i++)
for (int i = sel.FromX; i < lastSel.FromX; i++)
ts[sel.Start.iLine].RemoveAt(sel.Start.iChar);
ts.CurrentTB.Selection.Start = sel.Start;
break;
2 changes: 1 addition & 1 deletion FastColoredTextBox/ExportToHTML.cs
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ public string GetHtml(Range r)
{
for (int i = currentLine; i < p.iLine; i++)
{
tempSB.Append(UseBr ? "<br>" : "");
tempSB.Append(UseBr ? "<br>" : "\r\n");
if (IncludeLineNumbers)
tempSB.AppendFormat("<span class=lineNumber>{0}</span> ", i + 2);
}
4 changes: 2 additions & 2 deletions FastColoredTextBox/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.15.4.0")]
[assembly: AssemblyFileVersion("2.15.4.0")]
[assembly: AssemblyVersion("2.15.5.0")]
[assembly: AssemblyFileVersion("2.15.5.0")]

1 change: 1 addition & 0 deletions FastColoredTextBox/Style.cs
Original file line number Diff line number Diff line change
@@ -283,6 +283,7 @@ public override void Draw(Graphics gr, Point position, Range range)
//
if (ForegroundBrush != null)
{
//draw text
gr.SmoothingMode = SmoothingMode.AntiAlias;

var r = new Range(range.tb, range.Start.iChar, range.Start.iLine,

0 comments on commit 0148af1

Please sign in to comment.