[gtk-doc] gtkdoc: fix some indentation style warnings
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] gtkdoc: fix some indentation style warnings
- Date: Fri, 2 Mar 2018 13:31:40 +0000 (UTC)
commit 4344d003cd48e33743ef0e869a0e1cc8dddce4fd
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Mar 2 08:11:36 2018 +0100
gtkdoc: fix some indentation style warnings
gtkdoc/mkpdf.py | 38 +++++++++++++++++++-------------------
gtkdoc/scan.py | 10 +++++-----
2 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/gtkdoc/mkpdf.py b/gtkdoc/mkpdf.py
index 3e2099b..c84ec16 100755
--- a/gtkdoc/mkpdf.py
+++ b/gtkdoc/mkpdf.py
@@ -95,25 +95,25 @@ def run(options):
else:
quiet = '1'
res = run_xsltproc(options, ['--nonet',
- '--xinclude',
- '--stringparam',
- 'gtkdoc.bookname',
- module,
- '--stringparam',
- 'gtkdoc.version',
- config.version,
- '--stringparam',
- 'chunk.quietly',
- quiet,
- '--stringparam',
- 'chunker.output.quiet',
- quiet,
- module,
- document,
- '-o',
- module + '.fo',
- gtkdocdir + '/gtk-doc-fo.xsl',
- document])
+ '--xinclude',
+ '--stringparam',
+ 'gtkdoc.bookname',
+ module,
+ '--stringparam',
+ 'gtkdoc.version',
+ config.version,
+ '--stringparam',
+ 'chunk.quietly',
+ quiet,
+ '--stringparam',
+ 'chunker.output.quiet',
+ quiet,
+ module,
+ document,
+ '-o',
+ module + '.fo',
+ gtkdocdir + '/gtk-doc-fo.xsl',
+ document])
# TODO: fop dies too easily :(
# res = subprocess.call([config.fop, module + '.fo', module + '.pdf'))
fname = module + '.fo'
diff --git a/gtkdoc/scan.py b/gtkdoc/scan.py
index c1fe4d8..56aa23a 100644
--- a/gtkdoc/scan.py
+++ b/gtkdoc/scan.py
@@ -604,7 +604,7 @@ def ScanHeader(input_file, section_list, decl_list, get_types, options):
symbol = re.sub(r'\s*\n', '', symbol, flags=re.MULTILINE)
logging.info('Function (6): "%s", Returns: "%s"', symbol, ret_type)
- #} elsif (m/^extern\s+/) {
+ # } elsif (m/^extern\s+/) {
# print "DEBUG: Skipping extern: $_"
# STRUCTS
@@ -692,7 +692,7 @@ def ScanHeader(input_file, section_list, decl_list, get_types, options):
if internal == 0:
decl = re.sub(r'/\*.*?\*/', '', decl, flags=re.MULTILINE) # remove comments.
decl = re.sub(r'\s*\n\s*(?!$)', ' ', decl, flags=re.MULTILINE)
- # consolidate whitespace at start/end of lines.
+ # consolidate whitespace at start/end of lines.
decl = decl.strip()
ret_type = re.sub(r'/\*.*?\*/', '', ret_type) # remove comments in ret
type.
if AddSymbolToList(slist, symbol):
@@ -885,9 +885,9 @@ def AddSymbolToList(slist, symbol):
symbol: The symbol to add to the list.
"""
if symbol in slist:
- # logging.info('Symbol %s already in list. skipping', symbol)
- # we return False to skip outputting another entry to -decl.txt
- # this is to avoid redeclarations (e.g. in conditional sections).
+ # logging.info('Symbol %s already in list. skipping', symbol)
+ # we return False to skip outputting another entry to -decl.txt
+ # this is to avoid redeclarations (e.g. in conditional sections).
return False
slist.append(symbol)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]