RichText.patch

Jan DolinĂ¡r, 12/29/2013 05:59 PM

Download (991 Bytes)

View differences:

uppsrc/RichText/EncodeHTML.cpp (working copy)
65 65
	String style;
66 66
	int lm = z * f.lm;
67 67
	if(f.bullet && f.bullet != RichPara::BULLET_TEXT) {
68
		style << "display:list-item;line-style-type:";
68
		style << "display:list-item;list-style-type:";
69 69
		switch(f.bullet) {
70 70
		case RichPara::BULLET_ROUND: style << "disc"; break;
71 71
		case RichPara::BULLET_ROUNDWHITE: style << "circle"; break;
72 72
		case RichPara::BULLET_BOX:
73 73
		case RichPara::BULLET_BOXWHITE: style << "square"; break;
74 74
		}
75
		style << ";line-style-position:inside;";
75
		style << ";list-style-position:inside;";
76 76
		lm += 20;
77 77
	}
78
	style << Format("margin:%d %d %d %d;text-indent:%d;",
78
	style << Format("margin:%dpx %dpx %dpx %dpx;text-indent:%dpx;",
79 79
	                z * f.before,
80 80
	                z * f.rm,
81 81
	                z * f.after,