Hopefully fix the documentation generation issue
authorSylvestre Ledru <sylvestre@debian.org>
Mon, 22 Oct 2018 19:07:29 +0000 (19:07 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 22 Oct 2018 19:07:29 +0000 (19:07 +0000)
llvm-svn: 344939

clang/docs/ClangFormatStyleOptions.rst
clang/include/clang/Format/Format.h

index 3a43c98..d50c883 100644 (file)
@@ -1406,12 +1406,14 @@ the configuration (without a prefix: ``Auto``).
   can be a subset of another - the longest prefix is always matched. Within
   a group, the imports are ordered lexicographically.
 
-  In the .clang-format configuration file, this can be configured like:
+  In the .clang-format configuration file, this can be configured like
+  in the following yaml example. This will result in imports being
+  formatted as in the Java example below.
 
   .. code-block:: yaml
 
     JavaImportGroups: ['com.example', 'com', 'org']
-  Which will result in imports being formatted as so:
+
 
   .. code-block:: java
 
index cb5886f..b777496 100644 (file)
@@ -1139,11 +1139,13 @@ struct FormatStyle {
   /// can be a subset of another - the longest prefix is always matched. Within
   /// a group, the imports are ordered lexicographically.
   ///
-  /// In the .clang-format configuration file, this can be configured like:
+  /// In the .clang-format configuration file, this can be configured like
+  /// in the following yaml example. This will result in imports being
+  /// formatted as in the Java example below.
   /// \code{.yaml}
   ///   JavaImportGroups: ['com.example', 'com', 'org']
   /// \endcode
-  /// Which will result in imports being formatted as so:
+  ///
   /// \code{.java}
   ///    import static com.example.function1;
   ///