[clang] ba4caec - [clang-format][docs] Fix invalid CSS syntax in versionbadge

Emilia Dreamer via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 22 16:18:40 PST 2022


Author: Emilia Dreamer
Date: 2022-12-23T02:15:48+02:00
New Revision: ba4caec64fec457b4ab20876a809b45162b048f4

URL: https://github.com/llvm/llvm-project/commit/ba4caec64fec457b4ab20876a809b45162b048f4
DIFF: https://github.com/llvm/llvm-project/commit/ba4caec64fec457b4ab20876a809b45162b048f4.diff

LOG: [clang-format][docs] Fix invalid CSS syntax in versionbadge

CSS uses colons, not the equals sign. The final semicolon is optional,
but preferred to be included. Really, the font property doesn't really
need to be there, but I suppose it was put there for a reason.

It's surprising how lenient browsers are when parsing

Reviewed By: HazardyKnusperkeks, owenpan

Differential Revision: https://reviews.llvm.org/D138441

Added: 
    

Modified: 
    clang/docs/ClangFormatStyleOptions.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 27e93ff504d8..cac0afe0bffc 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -1,7 +1,7 @@
 .. raw:: html
 
       <style type="text/css">
-        .versionbadge { background-color: #1c913d; height: 20px; display: inline-block; width: 120px; text-align: center; border-radius: 5px; color: #FFFFFF; font-family="Verdana,Geneva,DejaVu Sans,sans-serif" }
+        .versionbadge { background-color: #1c913d; height: 20px; display: inline-block; width: 120px; text-align: center; border-radius: 5px; color: #FFFFFF; font-family: "Verdana,Geneva,DejaVu Sans,sans-serif"; }
       </style>
 
 .. role:: versionbadge


        


More information about the cfe-commits mailing list