Skip to content

Commit eaae385

Browse files
author
MikhailArkhipov
committed
Minor module doc fix
1 parent 58323b3 commit eaae385

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Python/Product/Analysis/Interpreter/Ast/AstPythonModule.cs

+5
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,11 @@ private static string TryGetDocFromModuleInitFile(string filePath) {
265265
return line.Substring(quote.Length, line.Length - 2 * quote.Length).Trim();
266266
}
267267
var sb = new StringBuilder();
268+
// Handle '''Text right here
269+
line = line.Substring(quote.Length).Trim();
270+
if (!string.IsNullOrEmpty(line)) {
271+
sb.AppendLine(line);
272+
}
268273
while (true) {
269274
line = sr.ReadLine();
270275
if (line == null || line.EndsWithOrdinal(quote)) {

0 commit comments

Comments
 (0)