Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nishimotz committed May 31, 2019
1 parent e32fa0e commit 3070fcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
url = https://github.com/RaMMicHaeL/minhook
[submodule "miscDeps"]
path = miscDeps
url = https://github.com/nvdajp/nvda-misc-deps
url = https://github.com/nvaccess/nvda-misc-deps
[submodule "include/espeak"]
path = include/espeak
url=https://github.com/espeak-ng/espeak-ng
Expand Down
8 changes: 4 additions & 4 deletions keyCommandsDoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import re
import txt2tags

LINE_END = "\r\n"
LINE_END = u"\r\n"

class KeyCommandsError(Exception):
"""Raised due to an error encountered in the User Guide related to generation of the Key Commands document.
Expand Down Expand Up @@ -196,7 +196,7 @@ def _writeHeadings(self):
for level, heading in enumerate(self._headings[level:], level):
# We don't want numbered headings in the output.
label=heading.group("label")
headingText = "{id}{txt}{id}{label}".format(
headingText = u"{id}{txt}{id}{label}".format(
id="=" * len(heading.group("id")),
txt=heading.group("txt"),
label="[%s]" % label if label else "")
Expand Down Expand Up @@ -267,9 +267,9 @@ def _handleSetting(self):
desc = next(self._ug).strip()
self._lineNum += 1

self._kc.write("| {name} | {keys} | {desc} |{lineEnd}".format(
self._kc.write(u"| {name} | {keys} | {desc} |{lineEnd}".format(
name=name,
keys=" | ".join(keys),
keys=u" | ".join(keys),
desc=desc, lineEnd=LINE_END))

def remove(self):
Expand Down

0 comments on commit 3070fcc

Please sign in to comment.