Skip to content

Commit e586b83

Browse files
committed
[fix] correct borders order
1 parent fd1095a commit e586b83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,16 +304,16 @@ fn get_styles_data(style_table: StyleTable) -> String {
304304
let mut border_element = Element::new("border");
305305
let mut children: Vec<Element> = vec![];
306306

307-
if let Some(b) = &border.top {
307+
if let Some(b) = &border.left {
308308
children.push(b.to_xml_el())
309309
}
310310
if let Some(b) = &border.right {
311311
children.push(b.to_xml_el())
312312
}
313-
if let Some(b) = &border.bottom {
313+
if let Some(b) = &border.top {
314314
children.push(b.to_xml_el())
315315
}
316-
if let Some(b) = &border.left {
316+
if let Some(b) = &border.bottom {
317317
children.push(b.to_xml_el())
318318
}
319319

0 commit comments

Comments
 (0)