Comments (3)
Well, decimals are sortable, but they're clearly nonstandard. I think
I'll release the next version as 4.0 and do it with multiple-periods
from then on; that should be clear to everyone.
from html2text.
Arfrever: My solution in Debian was to put decimals between every number, e.g. 3.1.0.1. I do it pretty hackily with a pair of regexes, I don't know if Gentoo has any similar mechanism.
http://anonscm.debian.org/viewvc/python-modules/packages/python-html2text/trunk/debian/watch?view=markup
from html2text.
I can use something similar to:
$ version="3.101"
$ version="${version//./}"
$ parsed_version=
$ for ((i=0; i<${#version}; i++)); do parsed_version+="${parsed_version:+.}${version:${i}:1}"; done
$ echo "${parsed_version}"
3.1.0.1
from html2text.
Related Issues (20)
- Trailing line break in list element should be ignored
- Line breaks in bold renders incorrect markdown
- Remove SLASH character before some list mark character
- href instead of content HOT 1
- Extra '\' slash appear before '-' and '.' HOT 1
- remove display:none tag HOT 1
- Let us all weep HOT 2
- do not support chinese? HOT 1
- Xrange error in python3.x HOT 1
- Document `pip install` ? HOT 1
- python2.7 ImportError: No module named entities HOT 1
- gap appears before char when any html char is inside a strong tag e.g HOT 3
- Where does the asterisk * come from? HOT 1
- Option to remove title from inline links url
- Support for `text-decoration: line-through` HOT 2
- markdown link was truncated because the limit of BODY_WIDTH 78
- no encoding declared
- Extra "\" slashes before specific numeric HOT 1
- Python HOT 4
- I miss you HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html2text.