diff --git a/kibot/bom/html_writer.py b/kibot/bom/html_writer.py index 275f8060d..f393e10d3 100644 --- a/kibot/bom/html_writer.py +++ b/kibot/bom/html_writer.py @@ -250,7 +250,7 @@ def content_table(html, groups, headings, head_names, cfg, link_datasheet, link_ if link_mouser and headings[n] in link_mouser: r = '' + r + '' if link_lcsc and headings[n] in link_lcsc: - r = '' + r + '' + r = '' + r + '' # Link this column to the datasheet? if link_datasheet == n and datasheet.startswith('http'): r = '' + r + '' diff --git a/kibot/bom/xlsx_writer.py b/kibot/bom/xlsx_writer.py index 082977b77..855d8879f 100644 --- a/kibot/bom/xlsx_writer.py +++ b/kibot/bom/xlsx_writer.py @@ -816,7 +816,7 @@ def write_xlsx(filename, groups, col_fields, head_names, cfg): worksheet.write_url(row_count, i, url, fmt, cell) # A link to LCSC? elif link_lcsc and col_fields[i] in link_lcsc: - url = 'https://www.lcsc.com/product-detail/' + cell + url = 'https://www.lcsc.com/product-detail/' + cell + '.html' worksheet.write_url(row_count, i, url, fmt, cell) else: worksheet.write_string(row_count, i, cell, fmt)