Skip to content

does not preserve bold formatting in cell #10

@hedges333

Description

@hedges333
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var conv = SheetConverter.init(ss.getSpreadsheetTimeZone(),
                               ss.getSpreadsheetLocale());

  
  for (var key in colNums) {
    var colNum = colNums[key];
    
    // use a range and preserve formatting with SheetConverter
    
    var range = thisSheet.getRange(rowNumber, colNum, 1, 1);
    
    var array = conv.convertRange2html(range);
    console.log("sheetconverter "+rowNumber+","+colNum+": "+JSON.stringify(array));
    // ...

See screenshots of original cell and the result...

capture

capture2

If I just use convertRange(range), it only seems to grab the plain text in the array.

Either way, it does not grab the formatting of the bold words. I don't really care about the background color. I just want the bold words.

This is a translation table for comic book dialog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions