Add replacement for deprecated white-space tag in wxSVGFileDC output
This commit is contained in:
@@ -588,7 +588,11 @@ void wxSVGFileDCImpl::DoDrawRotatedText(const wxString& sText, wxCoord x, wxCoor
|
|||||||
style += wxString::Format(wxS("%s %s stroke-width:0; "),
|
style += wxString::Format(wxS("%s %s stroke-width:0; "),
|
||||||
wxBrushString(m_textForegroundColour),
|
wxBrushString(m_textForegroundColour),
|
||||||
wxPenString(m_textForegroundColour));
|
wxPenString(m_textForegroundColour));
|
||||||
|
style += wxS("white-space: pre;");
|
||||||
style += wxS("\"");
|
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\"");
|
style += wxS(" xml:space=\"preserve\"");
|
||||||
|
|
||||||
// Draw all text line by line
|
// Draw all text line by line
|
||||||
|
Reference in New Issue
Block a user