mirror of
https://github.com/YGGverse/ggemtext.git
synced 2026-03-31 09:05:32 +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
|
||||
let value = regex.get(1)?;
|
||||
|
||||
if value.trim().is_empty() {
|
||||
return None;
|
||||
}
|
||||
|
||||
// Result
|
||||
Some(Self {
|
||||
value: value.to_string(),
|
||||
|
|
|
|||
|
|
@ -17,10 +17,6 @@ impl Quote {
|
|||
// Detect value
|
||||
let value = regex.get(1)?;
|
||||
|
||||
if value.trim().is_empty() {
|
||||
return None;
|
||||
}
|
||||
|
||||
// Result
|
||||
Some(Self {
|
||||
value: GString::from(value.as_str()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue