Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jayvdb:branches:devel:languages:python:misc
python-clevercss
python-clevercss-poeml-comments.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-clevercss-poeml-comments.patch of Package python-clevercss
handle whitespace in front of comments poeml, Wed Mar 24 19:01:31 CET 2010 Index: dziegler-clevercss-2272da5785fd9a5a723ea12a5d7081bec20b7c9b/clevercss.py =================================================================== --- dziegler-clevercss-2272da5785fd9a5a723ea12a5d7081bec20b7c9b.orig/clevercss.py +++ dziegler-clevercss-2272da5785fd9a5a723ea12a5d7081bec20b7c9b/clevercss.py @@ -541,6 +541,9 @@ class LineIterator(object): return self.lineno, line stripped_line = line[:comment_start] + # ignore also comments that have leading space; + # stripping from the right makes sure that the line is empty otherwise: + stripped_line = stripped_line.rstrip() comment_end = line.find('*/', comment_start) if comment_end >= 0: return self.lineno, stripped_line + line[comment_end + 2:]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor