Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b40bb27

Browse files
author
Chris Glass
committed
Applied Philippe Raoult's pisa_patch_hr.diff file. Thanks!
1 parent 805fe04 commit b40bb27

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

sx/pisa3/pisa_default.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@
295295

296296
"hr": (0, {
297297
"color": (COLOR, "#000000"),
298-
"size": (SIZE, "1"),
298+
"size": (SIZE, "2"),
299+
"width": STRING,
299300
"align": ["left", "center", "right", "justify"],
300301
}),
301302

sx/pisa3/pisa_tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def start(self, c):
361361
c.addStory(HRFlowable(
362362
color=self.attr.color,
363363
thickness=self.attr.size,
364-
width="100%",
364+
width=self.attr.get('width', "100%") or "100%",
365365
spaceBefore=c.frag.spaceBefore,
366366
spaceAfter=c.frag.spaceAfter
367367
))

0 commit comments

Comments
 (0)