forked from MapComplete/MapComplete
		
	chore: remove obsolete <br/> in food.json
This commit is contained in:
		
							parent
							
								
									b4c1375cb0
								
							
						
					
					
						commit
						3c276fad88
					
				
					 8 changed files with 21 additions and 17 deletions
				
			
		|  | @ -842,12 +842,12 @@ | |||
|     { | ||||
|       "id": "friture-take-your-container", | ||||
|       "question": { | ||||
|         "nl": "Als je je eigen container (bv. kookpot of kleine potjes voor saus) meeneemt, gebruikt de frituur deze dan om je bestelling in te doen?<br/>", | ||||
|         "fr": "Est-il proposé d’utiliser ses propres contenants pour sa commande ?<br/>", | ||||
|         "en": "If you bring your own container (such as a cooking pot and small pots), is it used to package your order?<br/>", | ||||
|         "ja": "お客様が持参容器(調理用の鍋や小さな鍋など)をもってきた場合は、注文の梱包に使用されますか?<br/>", | ||||
|         "de": "Wenn Sie Ihr eigenes Behältnis mitbringen (z. B. einen Kochtopf und kleine Töpfe), wird es dann zum Verpacken Ihrer Bestellung verwendet?<br/>", | ||||
|         "es": "Si traes tu propio recipiente (como ollas de cocina y ollas pequeñas), ¿se utiliza para empaquetar tu pedido?<br/>" | ||||
|         "nl": "Als je je eigen container (bv. kookpot of kleine potjes voor saus) meeneemt, gebruikt de frituur deze dan om je bestelling in te doen?", | ||||
|         "fr": "Est-il proposé d’utiliser ses propres contenants pour sa commande ?", | ||||
|         "en": "If you bring your own container (such as a cooking pot and small pots), is it used to package your order?", | ||||
|         "ja": "お客様が持参容器(調理用の鍋や小さな鍋など)をもってきた場合は、注文の梱包に使用されますか?", | ||||
|         "de": "Wenn Sie Ihr eigenes Behältnis mitbringen (z. B. einen Kochtopf und kleine Töpfe), wird es dann zum Verpacken Ihrer Bestellung verwendet?", | ||||
|         "es": "Si traes tu propio recipiente (como ollas de cocina y ollas pequeñas), ¿se utiliza para empaquetar tu pedido?" | ||||
|       }, | ||||
|       "mappings": [ | ||||
|         { | ||||
|  |  | |||
|  | @ -4603,7 +4603,7 @@ | |||
|                         "then": "Sie <b>müssen</b> Ihren eigenen Behälter mitbringen, um hier zu bestellen." | ||||
|                     } | ||||
|                 }, | ||||
|                 "question": "Wenn Sie Ihr eigenes Behältnis mitbringen (z. B. einen Kochtopf und kleine Töpfe), wird es dann zum Verpacken Ihrer Bestellung verwendet?<br/>" | ||||
|                 "question": "Wenn Sie Ihr eigenes Behältnis mitbringen (z. B. einen Kochtopf und kleine Töpfe), wird es dann zum Verpacken Ihrer Bestellung verwendet?" | ||||
|             }, | ||||
|             "friture-vegan": { | ||||
|                 "mappings": { | ||||
|  |  | |||
|  | @ -4603,7 +4603,7 @@ | |||
|                         "then": "You <b>must</b> bring your own container to order here." | ||||
|                     } | ||||
|                 }, | ||||
|                 "question": "If you bring your own container (such as a cooking pot and small pots), is it used to package your order?<br/>" | ||||
|                 "question": "If you bring your own container (such as a cooking pot and small pots), is it used to package your order?" | ||||
|             }, | ||||
|             "friture-vegan": { | ||||
|                 "mappings": { | ||||
|  |  | |||
|  | @ -2527,7 +2527,7 @@ | |||
|                         "then": "<b>Debes</b> de traer tu propio recipiente para pedir aquí." | ||||
|                     } | ||||
|                 }, | ||||
|                 "question": "Si traes tu propio recipiente (como ollas de cocina y ollas pequeñas), ¿se utiliza para empaquetar tu pedido?<br/>" | ||||
|                 "question": "Si traes tu propio recipiente (como ollas de cocina y ollas pequeñas), ¿se utiliza para empaquetar tu pedido?" | ||||
|             } | ||||
|         }, | ||||
|         "title": { | ||||
|  |  | |||
|  | @ -3066,7 +3066,7 @@ | |||
|                         "then": "Il est <b>obligatoire</b> d’apporter ses propres contenants." | ||||
|                     } | ||||
|                 }, | ||||
|                 "question": "Est-il proposé d’utiliser ses propres contenants pour sa commande ?<br/>" | ||||
|                 "question": "Est-il proposé d’utiliser ses propres contenants pour sa commande ?" | ||||
|             }, | ||||
|             "friture-vegan": { | ||||
|                 "mappings": { | ||||
|  |  | |||
|  | @ -426,7 +426,7 @@ | |||
|                         "then": "自身の容器が注文に<b>必要</b>。" | ||||
|                     } | ||||
|                 }, | ||||
|                 "question": "お客様が持参容器(調理用の鍋や小さな鍋など)をもってきた場合は、注文の梱包に使用されますか?<br/>" | ||||
|                 "question": "お客様が持参容器(調理用の鍋や小さな鍋など)をもってきた場合は、注文の梱包に使用されますか?" | ||||
|             } | ||||
|         } | ||||
|     }, | ||||
|  |  | |||
|  | @ -4510,7 +4510,7 @@ | |||
|                         "then": "Je <b>moet</b> je eigen containers meenemen om je bestelling in mee te nemen." | ||||
|                     } | ||||
|                 }, | ||||
|                 "question": "Als je je eigen container (bv. kookpot of kleine potjes voor saus) meeneemt, gebruikt de frituur deze dan om je bestelling in te doen?<br/>" | ||||
|                 "question": "Als je je eigen container (bv. kookpot of kleine potjes voor saus) meeneemt, gebruikt de frituur deze dan om je bestelling in te doen?" | ||||
|             }, | ||||
|             "friture-vegan": { | ||||
|                 "mappings": { | ||||
|  |  | |||
|  | @ -40,7 +40,10 @@ class ExtractQuestionHint extends DesugaringStep<QuestionableTagRenderingConfigJ | |||
|             const parts = q.split(/<br ?\/>/i) | ||||
|             if (parts.length == 2) { | ||||
|                 json.question[language] = parts[0] | ||||
|                 hint[language] = new FixedUiElement(parts[1]).ConstructElement().textContent | ||||
|                 const txt = new FixedUiElement(parts[1]).ConstructElement().textContent | ||||
|                 if (txt.length > 0) { | ||||
|                     hint[language] = txt | ||||
|                 } | ||||
|                 continue | ||||
|             } | ||||
| 
 | ||||
|  | @ -49,9 +52,10 @@ class ExtractQuestionHint extends DesugaringStep<QuestionableTagRenderingConfigJ | |||
|             ) // note: > 0, not >= : we are not interested in a span starting right away!
 | ||||
|             if (divStart > 0) { | ||||
|                 json.question[language] = q.substring(0, divStart) | ||||
|                 hint[language] = new FixedUiElement( | ||||
|                     q.substring(divStart) | ||||
|                 ).ConstructElement().textContent | ||||
|                 const txt = new FixedUiElement(q.substring(divStart)).ConstructElement().textContent | ||||
|                 if (txt !== "") { | ||||
|                     hint[language] = txt | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|         if (Object.keys(hint).length > 0) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue