Skip to content

Commit

Permalink
Fixing table widths for Google Docs compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
davetaz committed Jul 30, 2024
1 parent 73c9376 commit 57982f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions lib/docxBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ async function buildDocx(project,metrics) {
type: docx.PatchType.DOCUMENT,
children: [
new docx.Table({
columns: 2,
width: 0,
columnWidths: [7638,2000], // total page width is 9638 DXA for A4 portrait
rows: [
new docx.TableRow({
children: [
Expand Down Expand Up @@ -233,6 +236,9 @@ async function buildDocx(project,metrics) {
type: docx.PatchType.DOCUMENT,
children: [
new docx.Table({
columns: 6,
width: 0,
columnWidths: [3200,1606,1606,1606,1606,4800], // total page width is 9638 DXA for A4 portrait
rows: [
new docx.TableRow({
children: [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "care.theodi.org",
"version": "2.7.0",
"version": "2.7.1",
"description": "The ODI Care tool (AI enabled)",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions routes/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,4 @@ router.post('/local/password', ensureAuthenticated, async (req, res, next) => {
}
});



module.exports = router;

0 comments on commit 57982f6

Please sign in to comment.