if (!attr.GetCharacterStyleName().empty())
str << wxT(" characterstyle=\"") << wxString(attr.GetCharacterStyleName()) << wxT("\"");
+ if (attr.HasURL())
+ str << wxT(" url=\"") << attr.GetURL() << wxT("\"");
+
if (isPara)
{
if (attr.HasAlignment())
if (attr.HasBulletName())
str << wxT(" bulletname=\"") << attr.GetBulletName() << wxT("\"");
- if (attr.HasURL())
- str << wxT(" url=\"") << attr.GetURL() << wxT("\"");
-
if (!attr.GetParagraphStyleName().empty())
str << wxT(" parstyle=\"") << wxString(attr.GetParagraphStyleName()) << wxT("\"");
attr.SetTextEffectFlags(wxAtoi(value));
}
+ value = node->GetAttribute(wxT("url"), wxEmptyString);
+ if (!value.empty())
+ attr.SetURL(value);
+
// Set paragraph attributes
if (isPara)
{
if (!value.empty())
attr.SetBulletName(value);
- value = node->GetAttribute(wxT("url"), wxEmptyString);
- if (!value.empty())
- attr.SetURL(value);
-
value = node->GetAttribute(wxT("parstyle"), wxEmptyString);
if (!value.empty())
attr.SetParagraphStyleName(value);