Fixed: Html P element not using style attribute

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-11-11 23:50:16 +02:00
parent 5b4b7893f8
commit ab6467f64c
3 changed files with 4 additions and 2 deletions

View file

@ -208,6 +208,7 @@ namespace NLGUI
HTML_ATTR(P,QUICK_HELP_EVENTS),
HTML_ATTR(P,QUICK_HELP_LINK),
HTML_ATTR(P,NAME),
HTML_ATTR(P,STYLE),
};
enum

View file

@ -2281,8 +2281,8 @@ namespace NLGUI
{
newParagraph(PBeginSpace);
pushStyle();
if (present[HTML_BLOCK_STYLE] && value[HTML_BLOCK_STYLE])
getStyleParams(value[HTML_BLOCK_STYLE], _Style);
if (present[MY_HTML_P_STYLE] && value[MY_HTML_P_STYLE])
getStyleParams(value[MY_HTML_P_STYLE], _Style);
}
break;
case HTML_PRE:

View file

@ -213,6 +213,7 @@ namespace NLGUI
HTML_ATTR(P,QUICK_HELP_EVENTS),
HTML_ATTR(P,QUICK_HELP_LINK),
HTML_ATTR(P,NAME),
HTML_ATTR(P,STYLE),
{ 0 }
};