Add replacement for deprecated white-space tag in wxSVGFileDC output

This commit is contained in:
Maarten Bent
2019-08-02 23:03:28 +02:00
parent c34f04b758
commit b677c8d1b2

View File

@@ -588,7 +588,11 @@ void wxSVGFileDCImpl::DoDrawRotatedText(const wxString& sText, wxCoord x, wxCoor
style += wxString::Format(wxS("%s %s stroke-width:0; "),
wxBrushString(m_textForegroundColour),
wxPenString(m_textForegroundColour));
style += wxS("white-space: pre;");
style += wxS("\"");
// this is deprecated in favour of "white-space: pre", keep it for now to
// support SVG viewers that do not support the new tag
style += wxS(" xml:space=\"preserve\"");
// Draw all text line by line