Skip to content

Commit eb0f27b

Browse files
committed
Fix linewrapping issue
1 parent 2eab1a8 commit eb0f27b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

codegen/core/src/main/java/software/amazon/smithy/python/codegen/generators/SetupGenerator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ private static void writeConf(
316316
317317
html_theme = 'pydata_sphinx_theme'
318318
html_theme_options = {
319-
"navbar_center": [],
320319
"logo": {
321320
"text": "AWS SDK for Python",
322321
}

codegen/core/src/main/java/software/amazon/smithy/python/codegen/writer/PythonWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ private static int findWrapPosition(String line, int maxLineLength) {
185185
// Find the last space before maxLineLength
186186
int wrapAt = line.lastIndexOf(' ', maxLineLength);
187187
if (wrapAt == -1) {
188-
// If no space found, force wrap at maxLineLength
189-
wrapAt = maxLineLength;
188+
// If no space found, don't wrap
189+
wrapAt = line.length();
190190
} else {
191191
// Ensure we don't break a link
192192
int linkStart = line.lastIndexOf("`", wrapAt);

0 commit comments

Comments
 (0)