mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
fix for java doc comment bug (issue #877)
This commit is contained in:
@@ -750,7 +750,13 @@ public class JavaBuild {
|
||||
String[] javadoc = PApplet.match(sketch.getCode(0).getProgram(), "/\\*{2,}(.*)\\*+/");
|
||||
if (javadoc != null) {
|
||||
StringBuffer dbuffer = new StringBuffer();
|
||||
String[] pieces = PApplet.split(javadoc[1], '\n');
|
||||
String found = javadoc[1];
|
||||
// If there are multiple closings, need to catch the first. (A better
|
||||
// regex would fix this too, please submit one if that's your thing.)
|
||||
// http://code.google.com/p/processing/issues/detail?id=877
|
||||
found = found.substring(0, found.indexOf("*/"));
|
||||
System.out.println(found);
|
||||
String[] pieces = PApplet.split(found, '\n');
|
||||
for (String line : pieces) {
|
||||
// if this line starts with * characters, remove 'em
|
||||
String[] m = PApplet.match(line, "^\\s*\\*+(.*)");
|
||||
|
||||
Reference in New Issue
Block a user