AS3 docs not correctly displayed under p-code when metadata present

This commit is contained in:
Jindra Petřík
2021-02-08 20:15:19 +01:00
parent 0588780b03
commit 286fb9d5e4
4 changed files with 21 additions and 9 deletions
@@ -12,7 +12,8 @@
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.␍ */
* License along with this library.
*/
package com.jpexs.decompiler.flash.docs;
import com.jpexs.decompiler.flash.ApplicationInfo;
@@ -77,6 +78,9 @@ public class As3PCodeOtherDocs extends AbstractDocs {
if (curPath.startsWith("trait.method")) {
curPath = path.substring("trait.".length());
}
if (curPath.startsWith("method.body.trait.")) {
curPath = path.substring("method.body.".length());
}
if (prop.containsKey(curPath)) {
String docStr = prop.getString(curPath);
sb.append("<div class=\"path-block\">");