mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 17:15:33 +00:00
allow empty line for quote tag only
This commit is contained in:
parent
1c95f8ad08
commit
ec9b989d0a
2 changed files with 4 additions and 4 deletions
|
|
@ -17,6 +17,10 @@ impl Inline {
|
||||||
// Detect value
|
// Detect value
|
||||||
let value = regex.get(1)?;
|
let value = regex.get(1)?;
|
||||||
|
|
||||||
|
if value.trim().is_empty() {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
Some(Self {
|
Some(Self {
|
||||||
value: value.to_string(),
|
value: value.to_string(),
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,6 @@ impl Quote {
|
||||||
// Detect value
|
// Detect value
|
||||||
let value = regex.get(1)?;
|
let value = regex.get(1)?;
|
||||||
|
|
||||||
if value.trim().is_empty() {
|
|
||||||
return None;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Result
|
// Result
|
||||||
Some(Self {
|
Some(Self {
|
||||||
value: GString::from(value.as_str()),
|
value: GString::from(value.as_str()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue