Hello community,

here is the log from the commit of package python3-html2text for 
openSUSE:Factory checked in at 2015-06-15 17:50:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-html2text (Old)
 and      /work/SRC/openSUSE:Factory/.python3-html2text.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-html2text"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-html2text/python3-html2text.changes      
2015-06-06 09:54:37.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-html2text.new/python3-html2text.changes 
2015-06-15 17:50:47.000000000 +0200
@@ -1,0 +2,8 @@
+Mon Jun 15 02:15:36 UTC 2015 - [email protected]
+
+- update to version 2015.6.12:
+  * Feature #76: Making pre blocks clearer for further automatic
+    formatting.
+  * Fix #71: Coverage detects tests carried out in subprocesses
+
+-------------------------------------------------------------------

Old:
----
  html2text-2015.6.6.tar.gz

New:
----
  html2text-2015.6.12.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-html2text.spec ++++++
--- /var/tmp/diff_new_pack.xuPxX0/_old  2015-06-15 17:50:48.000000000 +0200
+++ /var/tmp/diff_new_pack.xuPxX0/_new  2015-06-15 17:50:48.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-html2text
-Version:        2015.6.6
+Version:        2015.6.12
 Release:        0
 Url:            https://github.com/Alir3z4/html2text/
 Summary:        Turn HTML into equivalent Markdown-structured text

++++++ html2text-2015.6.6.tar.gz -> html2text-2015.6.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/AUTHORS.rst 
new/html2text-2015.6.12/AUTHORS.rst
--- old/html2text-2015.6.6/AUTHORS.rst  2015-06-04 17:19:23.000000000 +0200
+++ new/html2text-2015.6.12/AUTHORS.rst 2015-06-12 08:58:49.000000000 +0200
@@ -16,6 +16,7 @@
 * Peter Wu <[email protected]>
 * Arjoonn Sharma <gh: theSage21>
 * Ali Mohammad <gh: alawibaba>
+* Albert Berger <gh: nbdsp>
 
 
 Maintainer:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/ChangeLog.rst 
new/html2text-2015.6.12/ChangeLog.rst
--- old/html2text-2015.6.6/ChangeLog.rst        2015-06-05 09:37:52.000000000 
+0200
+++ new/html2text-2015.6.12/ChangeLog.rst       2015-06-12 09:04:50.000000000 
+0200
@@ -1,5 +1,14 @@
+2015.6.12
+=========
+----
+
+* Feature #76: Making ``pre`` blocks clearer for further automatic formatting.
+* Fix #71: Coverage detects tests carried out in ``subprocesses``
+
+
 2015.6.6
 ========
+----
 
 * Fix #24: ``3.200.3`` vs ``2014.7.3`` output quirks.
 * Fix #61. Malformed links in markdown output.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/PKG-INFO 
new/html2text-2015.6.12/PKG-INFO
--- old/html2text-2015.6.6/PKG-INFO     2015-06-05 09:38:46.000000000 +0200
+++ new/html2text-2015.6.12/PKG-INFO    2015-06-12 09:07:11.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: html2text
-Version: 2015.6.6
+Version: 2015.6.12
 Summary: Turn HTML into equivalent Markdown-structured text.
 Home-page: https://github.com/Alir3z4/html2text/
 Author: Alireza Savand
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/README.md 
new/html2text-2015.6.12/README.md
--- old/html2text-2015.6.6/README.md    2015-06-05 08:58:22.000000000 +0200
+++ new/html2text-2015.6.12/README.md   2015-06-12 08:58:23.000000000 +0200
@@ -34,6 +34,7 @@
 | `--bypass-tables`                                      | Format tables in 
HTML rather than Markdown syntax.
 | `--single-line-break`                                  | Use a single line 
break after a block element rather than two.
 | `--reference-links`                                    | Use reference links 
instead of links to create markdown
+| `--mark-code`                                          | Mark preformatted 
and code blocks with [code]...[/code]
 
 
 
@@ -86,6 +87,13 @@
 
     PYTHONPATH=$PYTHONPATH:. coverage run --source=html2text setup.py test -v
 
+To see the coverage results:
+    
+    coverage combine
+    coverage html
+
+then open the `./htmlcov/index.html` file in your browser.
+
 ## Documentation
 
 Documentation lives [here](docs/index.md)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/html2text/__init__.py 
new/html2text-2015.6.12/html2text/__init__.py
--- old/html2text-2015.6.6/html2text/__init__.py        2015-06-05 
09:38:14.000000000 +0200
+++ new/html2text-2015.6.12/html2text/__init__.py       2015-06-12 
09:01:21.000000000 +0200
@@ -29,7 +29,7 @@
     skipwrap
 )
 
-__version__ = (2015, 6, 6)
+__version__ = (2015, 6, 12)
 
 
 # TODO:
@@ -70,6 +70,7 @@
         self.strong_mark = '**'
         self.single_line_break = config.SINGLE_LINE_BREAK
         self.use_automatic_links = config.USE_AUTOMATIC_LINKS
+        self.mark_code = config.MARK_CODE
 
         if out is None:
             self.out = self.outtextf
@@ -561,6 +562,8 @@
                 self.pre = 1
             else:
                 self.pre = 0
+                if self.mark_code:
+                    self.out("\n[/code]")
             self.p()
 
     # TODO: Add docstring for these one letter functions
@@ -607,6 +610,9 @@
                 #self.out(" :") #TODO: not output when already one there
                 if not data.startswith("\n"):  # <pre>stuff...
                     data = "\n" + data
+                if self.mark_code:
+                    self.out("\n[code]")
+                    self.p_p = 0
 
             bq = (">" * self.blockquote)
             if not (force and data and data[0] == ">") and self.blockquote:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/html2text/cli.py 
new/html2text-2015.6.12/html2text/cli.py
--- old/html2text-2015.6.6/html2text/cli.py     2015-06-05 09:21:08.000000000 
+0200
+++ new/html2text-2015.6.12/html2text/cli.py    2015-06-12 08:58:23.000000000 
+0200
@@ -131,6 +131,13 @@
             "line breaks. NOTE: Requires --body-width=0"
         )
     )
+    p.add_option(
+        "--mark-code",
+        action="store_true",
+        dest="mark_code",
+        default=config.MARK_CODE,
+        help="Mark program code blocks with [code]...[/code]"
+    )    
     (options, args) = p.parse_args()
 
     # process input
@@ -190,5 +197,6 @@
     h.bypass_tables = options.bypass_tables
     h.single_line_break = options.single_line_break
     h.inline_links = options.inline_links
+    h.mark_code = options.mark_code
 
     wrapwrite(h.handle(data))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/html2text/config.py 
new/html2text-2015.6.12/html2text/config.py
--- old/html2text-2015.6.6/html2text/config.py  2015-06-04 17:19:23.000000000 
+0200
+++ new/html2text-2015.6.12/html2text/config.py 2015-06-12 08:58:23.000000000 
+0200
@@ -32,6 +32,7 @@
 IMAGES_TO_ALT = False
 IMAGES_WITH_SIZE = False
 IGNORE_EMPHASIS = False
+MARK_CODE = False
 
 # Convert links with same href and text to <href> format if they are absolute 
links
 USE_AUTOMATIC_LINKS = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/html2text.egg-info/PKG-INFO 
new/html2text-2015.6.12/html2text.egg-info/PKG-INFO
--- old/html2text-2015.6.6/html2text.egg-info/PKG-INFO  2015-06-05 
09:38:46.000000000 +0200
+++ new/html2text-2015.6.12/html2text.egg-info/PKG-INFO 2015-06-12 
09:07:11.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: html2text
-Version: 2015.6.6
+Version: 2015.6.12
 Summary: Turn HTML into equivalent Markdown-structured text.
 Home-page: https://github.com/Alir3z4/html2text/
 Author: Alireza Savand
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/html2text.egg-info/SOURCES.txt 
new/html2text-2015.6.12/html2text.egg-info/SOURCES.txt
--- old/html2text-2015.6.6/html2text.egg-info/SOURCES.txt       2015-06-05 
09:38:46.000000000 +0200
+++ new/html2text-2015.6.12/html2text.egg-info/SOURCES.txt      2015-06-12 
09:07:11.000000000 +0200
@@ -61,6 +61,8 @@
 test/img-tag-with-link.md
 test/invalid_start.html
 test/invalid_start.md
+test/mark_code.html
+test/mark_code.md
 test/nbsp.html
 test/nbsp.md
 test/nbsp_unicode.html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/test/mark_code.html 
new/html2text-2015.6.12/test/mark_code.html
--- old/html2text-2015.6.6/test/mark_code.html  1970-01-01 01:00:00.000000000 
+0100
+++ new/html2text-2015.6.12/test/mark_code.html 2015-06-12 08:58:23.000000000 
+0200
@@ -0,0 +1,12 @@
+<html>
+  <body>
+<p>Normal text with 'pre' code block.</p>
+<pre>
+import os
+
+def function():
+    a = 1
+</pre>
+<p>Normal text continues.</p>
+</body>
+</html>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/test/mark_code.md 
new/html2text-2015.6.12/test/mark_code.md
--- old/html2text-2015.6.6/test/mark_code.md    1970-01-01 01:00:00.000000000 
+0100
+++ new/html2text-2015.6.12/test/mark_code.md   2015-06-12 08:58:23.000000000 
+0200
@@ -0,0 +1,13 @@
+Normal text with 'pre' code block.
+
+[code]
+
+    import os
+    
+    def function():
+        a = 1
+    
+[/code]
+
+Normal text continues.
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/html2text-2015.6.6/test/test_html2text.py 
new/html2text-2015.6.12/test/test_html2text.py
--- old/html2text-2015.6.6/test/test_html2text.py       2015-06-05 
08:58:22.000000000 +0200
+++ new/html2text-2015.6.12/test/test_html2text.py      2015-06-12 
08:58:23.000000000 +0200
@@ -149,6 +149,10 @@
         module_args['inline_links'] = False
         cmdline_args.append('--reference-links')
 
+    if base_fn.startswith('mark_code'):
+        module_args['mark_code'] = True
+        cmdline_args.append('--mark-code')
+        
     return test_mod, test_cmd
 
 # Originally from http://stackoverflow.com/questions/32899/\


Reply via email to