mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
trim ending separators captured by regex, add native margin
This commit is contained in:
parent
c3d3bce7d0
commit
f9207997f3
1 changed files with 2 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ impl Code {
|
||||||
id,
|
id,
|
||||||
Entry {
|
Entry {
|
||||||
alt: alt(cap["alt"].into()).map(|s| s.into()),
|
alt: alt(cap["alt"].into()).map(|s| s.into()),
|
||||||
data: cap["data"].into(),
|
data: cap["data"].trim_end().into(),
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.is_none()
|
.is_none()
|
||||||
|
|
@ -200,6 +200,7 @@ impl Code {
|
||||||
.wrap_mode(WrapMode::None)
|
.wrap_mode(WrapMode::None)
|
||||||
.build(),
|
.build(),
|
||||||
)
|
)
|
||||||
|
.margin_bottom(MARGIN)
|
||||||
.margin_end(MARGIN)
|
.margin_end(MARGIN)
|
||||||
.margin_start(MARGIN)
|
.margin_start(MARGIN)
|
||||||
.margin_top(MARGIN)
|
.margin_top(MARGIN)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue