From 51be48358e47c0c353c0755fb50b10be5ed27db9 Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Mon, 13 May 2019 20:25:31 -0700 Subject: [PATCH] Make IDL spec compliant again (#298) --- spec/Makefile | 2 +- spec/extract-idl.py | 10 +++--- spec/index.bs | 75 ++++++++++++++++++++++++--------------------- 3 files changed, 47 insertions(+), 40 deletions(-) diff --git a/spec/Makefile b/spec/Makefile index 193a83921e..7c23be86dc 100644 --- a/spec/Makefile +++ b/spec/Makefile @@ -3,7 +3,7 @@ all: index.html webgpu.idl index.html: index.bs bikeshed -f spec index.bs -webgpu.idl: index.bs +webgpu.idl: index.bs extract-idl.py python extract-idl.py index.bs > webgpu.idl online: diff --git a/spec/extract-idl.py b/spec/extract-idl.py index 29429e45ec..a0ea13dca3 100755 --- a/spec/extract-idl.py +++ b/spec/extract-idl.py @@ -19,7 +19,7 @@ // **** This file is auto-generated. Do not edit. **** -""" +""".lstrip() inputfilename = sys.argv[1] inputfile = open(inputfilename) @@ -28,15 +28,17 @@ idlStart = re.compile("\