Re: [touch-events] Some dictionary members don't display properly (#31)

It seems to me that this might be a bug of [ReSpec - webidl-oldschool ](https://github.com/w3c/respec/blob/develop/js/core/webidl-oldschool.js#L1095-L1100)
```javascript
if (it.declaration) sn.text(", " + it.declaration, dt);
if (it.nullable) sn.text(", nullable", dt);
if (it.defaultValue) {
    sn.text(", defaulting to ", dt);
    sn.element("code", {}, dt, [sn.text(it.defaultValue)]);
}
```
Where `it.declaration` is always at least 9 characters long, [filled with spaces](https://github.com/w3c/respec/blob/develop/js/core/webidl-oldschool.js#L374-L375).
```javascript
obj.declaration = match[1] ? match[1] : "";
obj.declaration += (new Array(9-obj.declaration.length)).join(" "); // fill string with spaces
```

I noticed that there is another file [ReSpec - webidl-contiguous ](https://github.com/w3c/respec/blob/develop/js/core/webidl-contiguous.js#L359-L387) doing the similar thing, probably a new version?

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/touch-events/issues/31#issuecomment-151299350

Received on Monday, 26 October 2015 22:13:46 UTC