We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea294dc commit 4e6492bCopy full SHA for 4e6492b
src/properties/font.rs
@@ -423,11 +423,12 @@ impl<'i> ToCss for FamilyName<'i> {
423
if !val.is_empty() && !GenericFontFamily::parse_string(val).is_ok() {
424
// Family names with two or more consecutive spaces must be quoted to preserve the spaces.
425
let needs_quotes = val.contains(" ");
426
- let mut id = if needs_quotes {
427
- return serialize_string(&val, dest)
428
- } else {
429
- String::new()
430
- };
+ if needs_quotes {
+ serialize_string(&val, dest)?;
+ return Ok(());
+ }
+
431
+ let mut id = String::new();
432
let mut first = true;
433
for slice in val.split(' ') {
434
if first {
0 commit comments