X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1309ba6c7ec76b4507cf1f2e8656749e3de1befa..acc0ebd7a871124d4d6b36069340227e6c584f38:/src/html/m_pre.cpp diff --git a/src/html/m_pre.cpp b/src/html/m_pre.cpp index a474a1ec38..f87983853a 100644 --- a/src/html/m_pre.cpp +++ b/src/html/m_pre.cpp @@ -20,10 +20,8 @@ #endif #ifndef WXPRECOMP -#include "wx/wx.h" #endif - #include "wx/html/forcelnk.h" #include "wx/html/m_templ.h" @@ -65,7 +63,7 @@ TAG_HANDLER_BEGIN(PRE, "PRE") wxString src, srcMid; src = *m_WParser->GetSource(); - srcMid = src.Mid(tag.GetBeginPos(), + srcMid = src.Mid(tag.GetBeginPos(), tag.GetEndPos1() - tag.GetBeginPos()); srcMid.Replace(wxT("\t"), wxT(" ")); srcMid.Replace(wxT(" "), wxT(" ")); @@ -76,7 +74,7 @@ TAG_HANDLER_BEGIN(PRE, "PRE") m_Parser->SetSource(srcMid); m_Parser->DoParsing(); m_Parser->SetSource(src); - + m_WParser->CloseContainer(); c = m_WParser->OpenContainer();