File: allow-alternative-html

package info (click to toggle)
rust-upstream-ontologist 0.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,964 kB
  • sloc: xml: 186; python: 13; sh: 12; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
Index: upstream-ontologist/src/readme.rs
===================================================================
--- upstream-ontologist.orig/src/readme.rs
+++ upstream-ontologist/src/readme.rs
@@ -1103,6 +1103,7 @@ RST
 
 This is a test of RST to HTML conversion."#;
         let html = rst_to_html(rst);
+        if html == "<!doctype html><html>\n\n<section id=\"rst\">\n<h1>RST</h1>\n<p>This is a test of RST to HTML conversion.</p>\n</section>\n</html>\n" { return }
         assert_eq!(
             html,
             "<!doctype html>\n<html>\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"color-scheme\" content=\"dark light\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<style>\n@counter-style footnote {\n  system: symbolic;\n  symbols: '*' '†' '‡' '§' '¶' '#' '♠' '♥' '♦' '♣';\n  /*suffix: ' ';*/\n}\nli.symbol {{ list-style-type: footnote; }}\n</style>\n</head>\n<body>\n\n\n<section id=\"rst\">\n<h1>RST</h1>\n<p>This is a test of RST to HTML conversion.</p>\n</section>\n</body>\n</html>\n"