|
76 | 76 | " |
77 | 77 | `; |
78 | 78 |
|
| 79 | +exports[`bracketSameLine => true, xmlSelfClosingSpace => false 1`] = ` |
| 80 | +"<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?> |
| 81 | +<!DOCTYPE module PUBLIC \\"-//Puppy Crawl//DTD Check Configuration 1.3//EN\\" |
| 82 | + \\"https://www.puppycrawl.com/dtds/configuration_1_3.dtd\\"> |
| 83 | +<?xml-model href=\\"project.rnc\\" type=\\"application/relax-ng-compact-syntax\\"?> |
| 84 | +<!-- foo --> |
| 85 | +<svg |
| 86 | + xmlns=\\"http://www.w3.org/2000/svg\\" |
| 87 | + xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" |
| 88 | + width=\\"200\\" |
| 89 | + height=\\"100\\" |
| 90 | + viewBox=\\"0 0 200 100\\"> |
| 91 | + <title>Style inheritance and the use element</title> |
| 92 | + <desc _attr=\\"attr\\"> |
| 93 | + &anp; 〹 |
| 94 | + <![CDATA[ |
| 95 | + foo |
| 96 | + ]]> |
| 97 | + bar |
| 98 | + </desc> |
| 99 | + <?pagebreak?> |
| 100 | +
|
| 101 | + <style/> |
| 102 | + <style/> |
| 103 | + <style type=\\"text/css\\"> |
| 104 | +circle { |
| 105 | + stroke-opacity: 0.7; |
| 106 | +} |
| 107 | +.special circle { |
| 108 | + stroke: green; |
| 109 | +} |
| 110 | +use { |
| 111 | + stroke: purple; |
| 112 | + fill: orange; |
| 113 | +} |
| 114 | + </style> |
| 115 | +
|
| 116 | + <yaml |
| 117 | + myveryveryveryverylongattributename=\\"myveryveryveryverylongattributevalue\\"> |
| 118 | + - 1 |
| 119 | + - 2 |
| 120 | + - 3 |
| 121 | + </style> |
| 122 | +
|
| 123 | + <!-- inner comment --> |
| 124 | +
|
| 125 | + <?pagebreak?> |
| 126 | + <g class=\\"special\\" style=\\"fill: blue\\"> |
| 127 | + <circle id=\\"c\\" cy=\\"50\\" cx=\\"50\\" r=\\"40\\" stroke-width=\\"20\\"/> |
| 128 | + </g> |
| 129 | + <use xlink:href=\\"#c\\" x=\\"100\\"/> |
| 130 | + <ignored> |
| 131 | + <!-- prettier-ignore-start --> |
| 132 | + < ignored /> |
| 133 | + <!-- prettier-ignore-end --> |
| 134 | + </ignored> |
| 135 | + <p> |
| 136 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at est eget |
| 137 | + enim consectetur accumsan. Aliquam pretium sodales ipsum quis dignissim. Sed |
| 138 | + id sem vel diam luctus fringilla. Aliquam quis egestas magna. Curabitur |
| 139 | + molestie lorem et odio porta, et molestie libero laoreet. Morbi rhoncus |
| 140 | + sagittis cursus. Nullam vehicula pretium consequat. Praesent porta ante at |
| 141 | + posuere sollicitudin. Nullam commodo tempor arcu, at condimentum neque |
| 142 | + elementum ut. |
| 143 | + </p> |
| 144 | + <span>content</span> |
| 145 | +
|
| 146 | + <div> |
| 147 | + even more |
| 148 | + <content/> |
| 149 | + </div> |
| 150 | +</svg> |
| 151 | +<!-- bar --> |
| 152 | +" |
| 153 | +`; |
| 154 | + |
79 | 155 | exports[`defaults 1`] = ` |
80 | 156 | "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" ?> |
81 | 157 | <!DOCTYPE module PUBLIC \\"-//Puppy Crawl//DTD Check Configuration 1.3//EN\\" |
@@ -151,6 +227,84 @@ use { |
151 | 227 | " |
152 | 228 | `; |
153 | 229 |
|
| 230 | +exports[`xmlSelfClosingSpace => false 1`] = ` |
| 231 | +"<?xml version=\\"1.0\\" encoding=\\"UTF-8\\"?> |
| 232 | +<!DOCTYPE module PUBLIC \\"-//Puppy Crawl//DTD Check Configuration 1.3//EN\\" |
| 233 | + \\"https://www.puppycrawl.com/dtds/configuration_1_3.dtd\\"> |
| 234 | +<?xml-model href=\\"project.rnc\\" type=\\"application/relax-ng-compact-syntax\\"?> |
| 235 | +<!-- foo --> |
| 236 | +<svg |
| 237 | + xmlns=\\"http://www.w3.org/2000/svg\\" |
| 238 | + xmlns:xlink=\\"http://www.w3.org/1999/xlink\\" |
| 239 | + width=\\"200\\" |
| 240 | + height=\\"100\\" |
| 241 | + viewBox=\\"0 0 200 100\\" |
| 242 | +> |
| 243 | + <title>Style inheritance and the use element</title> |
| 244 | + <desc _attr=\\"attr\\"> |
| 245 | + &anp; 〹 |
| 246 | + <![CDATA[ |
| 247 | + foo |
| 248 | + ]]> |
| 249 | + bar |
| 250 | + </desc> |
| 251 | + <?pagebreak?> |
| 252 | +
|
| 253 | + <style/> |
| 254 | + <style/> |
| 255 | + <style type=\\"text/css\\"> |
| 256 | +circle { |
| 257 | + stroke-opacity: 0.7; |
| 258 | +} |
| 259 | +.special circle { |
| 260 | + stroke: green; |
| 261 | +} |
| 262 | +use { |
| 263 | + stroke: purple; |
| 264 | + fill: orange; |
| 265 | +} |
| 266 | + </style> |
| 267 | +
|
| 268 | + <yaml |
| 269 | + myveryveryveryverylongattributename=\\"myveryveryveryverylongattributevalue\\" |
| 270 | + > |
| 271 | + - 1 |
| 272 | + - 2 |
| 273 | + - 3 |
| 274 | + </style> |
| 275 | +
|
| 276 | + <!-- inner comment --> |
| 277 | +
|
| 278 | + <?pagebreak?> |
| 279 | + <g class=\\"special\\" style=\\"fill: blue\\"> |
| 280 | + <circle id=\\"c\\" cy=\\"50\\" cx=\\"50\\" r=\\"40\\" stroke-width=\\"20\\"/> |
| 281 | + </g> |
| 282 | + <use xlink:href=\\"#c\\" x=\\"100\\"/> |
| 283 | + <ignored> |
| 284 | + <!-- prettier-ignore-start --> |
| 285 | + < ignored /> |
| 286 | + <!-- prettier-ignore-end --> |
| 287 | + </ignored> |
| 288 | + <p> |
| 289 | + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at est eget |
| 290 | + enim consectetur accumsan. Aliquam pretium sodales ipsum quis dignissim. Sed |
| 291 | + id sem vel diam luctus fringilla. Aliquam quis egestas magna. Curabitur |
| 292 | + molestie lorem et odio porta, et molestie libero laoreet. Morbi rhoncus |
| 293 | + sagittis cursus. Nullam vehicula pretium consequat. Praesent porta ante at |
| 294 | + posuere sollicitudin. Nullam commodo tempor arcu, at condimentum neque |
| 295 | + elementum ut. |
| 296 | + </p> |
| 297 | + <span>content</span> |
| 298 | +
|
| 299 | + <div> |
| 300 | + even more |
| 301 | + <content/> |
| 302 | + </div> |
| 303 | +</svg> |
| 304 | +<!-- bar --> |
| 305 | +" |
| 306 | +`; |
| 307 | + |
154 | 308 | exports[`xmlWhitespaceSensitivity => ignore 1`] = ` |
155 | 309 | "<?xml version=\\"1.0\\" encoding=\\"UTF-8\\" ?> |
156 | 310 | <!DOCTYPE module PUBLIC \\"-//Puppy Crawl//DTD Check Configuration 1.3//EN\\" |
|
0 commit comments