mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +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,
|
||||
Entry {
|
||||
alt: alt(cap["alt"].into()).map(|s| s.into()),
|
||||
data: cap["data"].into(),
|
||||
data: cap["data"].trim_end().into(),
|
||||
},
|
||||
)
|
||||
.is_none()
|
||||
|
|
@ -200,6 +200,7 @@ impl Code {
|
|||
.wrap_mode(WrapMode::None)
|
||||
.build(),
|
||||
)
|
||||
.margin_bottom(MARGIN)
|
||||
.margin_end(MARGIN)
|
||||
.margin_start(MARGIN)
|
||||
.margin_top(MARGIN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue