Skip to content

Commit

Permalink
Fix HTML tags that have gotten broken across lines
Browse files Browse the repository at this point in the history
This patch fixes HTML tags where the closing '>' was put at the start of
the next line. The "_ihatexml.py" parser in html5lib does not like this.
  • Loading branch information
reillyeon committed Apr 21, 2018
1 parent d7e6e28 commit 4ce7755
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,19 @@ spec: promises-guide-1
services: ['heart_rate'],
}]
}).then(device => device.gatt.<a for="BluetoothRemoteGATTServer">connect()</a>)
.then(server => server.<a idl for="BluetoothRemoteGATTServer" lt="getPrimaryService()"
>getPrimaryService</a>(<a idl lt="org.bluetooth.service.heart_rate"
>'heart_rate'</a>))
.then(server => server.<a idl for="BluetoothRemoteGATTServer" lt="getPrimaryService()">
getPrimaryService</a>(<a idl lt="org.bluetooth.service.heart_rate">
'heart_rate'</a>))
.then(service => {
chosenHeartRateService = service;
return Promise.all([
service.<a idl for="BluetoothRemoteGATTService" lt="getCharacteristic()"
>getCharacteristic</a>(<a idl lt="org.bluetooth.characteristic.body_sensor_location"
>'body_sensor_location'</a>)
service.<a idl for="BluetoothRemoteGATTService" lt="getCharacteristic()">
getCharacteristic</a>(<a idl lt="org.bluetooth.characteristic.body_sensor_location">
'body_sensor_location'</a>)
.then(handleBodySensorLocationCharacteristic),
service.<a idl for="BluetoothRemoteGATTService" lt="getCharacteristic()"
>getCharacteristic</a>(<a idl lt="org.bluetooth.characteristic.heart_rate_measurement"
>'heart_rate_measurement'</a>)
service.<a idl for="BluetoothRemoteGATTService" lt="getCharacteristic()">
getCharacteristic</a>(<a idl lt="org.bluetooth.characteristic.heart_rate_measurement">
'heart_rate_measurement'</a>)
.then(handleHeartRateMeasurementCharacteristic),
]);
});
Expand Down Expand Up @@ -271,8 +271,8 @@ spec: promises-guide-1

<p>
<code>parseHeartRate()</code> would be defined using the
<a idl lt="org.bluetooth.characteristic.heart_rate_measurement"
><code>heart_rate_measurement</code> documentation</a>
<a idl lt="org.bluetooth.characteristic.heart_rate_measurement">
<code>heart_rate_measurement</code> documentation</a>
to read the {{DataView}} stored
in a {{BluetoothRemoteGATTCharacteristic}}'s
{{BluetoothRemoteGATTCharacteristic/value}} field.
Expand Down Expand Up @@ -337,9 +337,9 @@ spec: promises-guide-1
if (!chosenHeartRateService) {
return Promise.reject(new Error('No heart rate sensor selected yet.'));
}
return chosenHeartRateService.<a idl for="BluetoothRemoteGATTService" lt="getCharacteristic()"
>getCharacteristic</a>(<a idl lt="org.bluetooth.characteristic.heart_rate_control_point"
>'heart_rate_control_point'</a>)
return chosenHeartRateService.<a idl for="BluetoothRemoteGATTService" lt="getCharacteristic()">
getCharacteristic</a>(<a idl lt="org.bluetooth.characteristic.heart_rate_control_point">
'heart_rate_control_point'</a>)
.then(controlPoint => {
let resetEnergyExpended = new Uint8Array([1]);
return controlPoint.<a idl for="BluetoothRemoteGATTCharacteristic" lt="writeValue()">writeValue</a>(resetEnergyExpended);
Expand Down Expand Up @@ -1813,8 +1813,8 @@ spec: promises-guide-1
<a>extra permission data type</a>
</dt>
<dd>
<p oldids="allowed-devices-map,device-id,allowed-services-list"
>{{BluetoothPermissionData}}, defined as:</p>
<p oldids="allowed-devices-map,device-id,allowed-services-list">
{{BluetoothPermissionData}}, defined as:</p>
<pre class="idl">
dictionary AllowedBluetoothDevice {
required DOMString deviceId;
Expand Down Expand Up @@ -3705,8 +3705,8 @@ spec: promises-guide-1
<p>
<dfn>uuid</dfn> is the UUID of the characteristic,
e.g. <code>'00002a37-0000-1000-8000-00805f9b34fb'</code> for the
<a idl lt="org.bluetooth.characteristic.heart_rate_measurement"
>Heart Rate Measurement</a> characteristic.
<a idl lt="org.bluetooth.characteristic.heart_rate_measurement">
Heart Rate Measurement</a> characteristic.
</p>
<p>
<dfn>properties</dfn> holds the properties of this characteristic.
Expand Down Expand Up @@ -4239,8 +4239,8 @@ spec: promises-guide-1
<p>
<dfn>uuid</dfn> is the UUID of the characteristic descriptor,
e.g. <code>'00002902-0000-1000-8000-00805f9b34fb'</code> for the
<a idl lt="org.bluetooth.descriptor.gatt.client_characteristic_configuration"
>Client Characteristic Configuration</a> descriptor.
<a idl lt="org.bluetooth.descriptor.gatt.client_characteristic_configuration">
Client Characteristic Configuration</a> descriptor.
</p>
<p>
<dfn>value</dfn> is the currently cached descriptor value.
Expand Down Expand Up @@ -5237,8 +5237,8 @@ spec: promises-guide-1

<div class="example">
<p>
<code>{{BluetoothUUID/getService()|BluetoothUUID.getService}}("<a idl lt="org.bluetooth.service.cycling_power"
>cycling_power</a>")</code>
<code>{{BluetoothUUID/getService()|BluetoothUUID.getService}}("<a idl lt="org.bluetooth.service.cycling_power">
cycling_power</a>")</code>
returns <code>"00001818-0000-1000-8000-00805f9b34fb"</code>.
</p>
<p>
Expand Down Expand Up @@ -5266,8 +5266,8 @@ spec: promises-guide-1

<p>
This specification relies on a blocklist file in the
<a href="/WebBluetoothCG/registries"
>https://github.com/WebBluetoothCG/registries</a> repository
<a href="/WebBluetoothCG/registries">
https://github.com/WebBluetoothCG/registries</a> repository
to restrict the set of GATT attributes a website can access.
</p>

Expand Down Expand Up @@ -5319,8 +5319,8 @@ spec: promises-guide-1

<p>
The <dfn>GATT blocklist</dfn> is the result of <a>parsing the blocklist</a> at
<a href="/WebBluetoothCG/registries/blob/master/gatt_blocklist.txt"
>https://github.com/WebBluetoothCG/registries/blob/master/gatt_blocklist.txt</a>.
<a href="/WebBluetoothCG/registries/blob/master/gatt_blocklist.txt">
https://github.com/WebBluetoothCG/registries/blob/master/gatt_blocklist.txt</a>.
The UA should re-fetch the blocklist periodically, but it's unspecified how often.
</p>

Expand Down Expand Up @@ -5441,9 +5441,9 @@ spec: promises-guide-1
<li value="5">Status Parameters
<ol>
<li value="4">
Read <dfn lt="RSSI|Received Signal Strength"
><abbr title="Received Signal Strength Indication"
>RSSI</abbr></dfn> Command
Read <dfn lt="RSSI|Received Signal Strength">
<abbr title="Received Signal Strength Indication">
RSSI</abbr></dfn> Command
</li>
</ol>
</li>
Expand Down

0 comments on commit 4ce7755

Please sign in to comment.