diff -r bd20f8710f45 -r d68826df8b63 src/EditRecipeExport.cpp --- a/src/EditRecipeExport.cpp Sun Jul 31 16:29:05 2022 +0200 +++ b/src/EditRecipeExport.cpp Sun Jul 31 20:23:27 2022 +0200 @@ -21,8 +21,8 @@ void EditRecipe::exportBeerXML() { const QStringList color_method({ "Morey", "Mosher", "Daniels", "Halberstadt", "Naudts" }); - const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet" }); - /* "Leaf Wet", "Cryo", "Extract" */ + const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet", "Pellet" }); + /* "Leaf Wet", "Cryo", "CO2 extract", "Iso extract" */ /* We use more hop forms then beerxml knows about, so we send known names */ /* instead of what we internally use. */ @@ -119,6 +119,9 @@ xmlWriter->writeTextElement("BETA", QString::number(recipe->hops.at(i).beta, 'f', 1)); xmlWriter->writeTextElement("HSI", QString::number(recipe->hops.at(i).hsi, 'f', 1)); xmlWriter->writeTextElement("ORIGIN", recipe->hops.at(i).origin); + xmlWriter->writeTextElement("BMS_FORM", g_hop_forms[recipe->hops.at(i).form]); + xmlWriter->writeTextElement("BMS_UTILISATION", QString::number(recipe->hops.at(i).utilisation, 'f', 4)); + xmlWriter->writeTextElement("BMS_BU_FACTOR", QString::number(recipe->hops.at(i).bu_factor, 'f', 1)); xmlWriter->writeEndElement(); } xmlWriter->writeEndElement(); // HOPS