bin/crashreportScraper.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ad15ee137123a9657886f3a25692e8b8b707b080
Author:     Xisco Fauli <[email protected]>
AuthorDate: Mon Dec 23 16:45:51 2024 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Mon Dec 23 19:55:13 2024 +0100

    crashreportScraper: open links in new tab
    
    Change-Id: I577b8d9ceff6c1aa74128a14a1e0f8ef57c3fd89
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179258
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/bin/crashreportScraper.py b/bin/crashreportScraper.py
index 65180f85de63..e3c8c0328236 100755
--- a/bin/crashreportScraper.py
+++ b/bin/crashreportScraper.py
@@ -164,7 +164,7 @@ def parse_details_and_get_info(url, gitRepo, gitBranch):
                         if index + 1 == int(codeNumber):
                             urlLink = "https://git.libreoffice.org/core/+/"; + \
                                 gitBranch + "/" + codeFile + "#" + 
str(codeNumber)
-                            codeLine += str(count) + ": <a href=\"" + urlLink 
+ "\">" + line.strip().replace("\"", "'") + "</a>"
+                            codeLine += str(count) + ": <a target=\"_blank\" 
href=\"" + urlLink + "\">" + line.strip().replace("\"", "'") + "</a>"
                             count += 1
             except FileNotFoundError:
                 continue
@@ -230,7 +230,7 @@ if __name__ == '__main__':
                     ratio = round(crashCount / ((lDate[2] - lDate[1]).days + 
1), 2)
                     count += 1
                     f.write("<td id=\"td1\">" + str(count) + "</td>")
-                    f.write("<td id=\"td1\"><b><a 
href=\"https://crashreport.libreoffice.org/stats/crash_details/";
+                    f.write("<td id=\"td1\"><b><a target=\"_blank\" 
href=\"https://crashreport.libreoffice.org/stats/crash_details/";
                         + crashID + "\">" + k + "</a></b></td>")
                     f.write("<td id=\"td1\">" + str(ratio) + "</td>")
                     f.write("<td id=\"td1\">" + str(crashCount) + "</td>")

Reply via email to